Added remote debugging

This commit is contained in:
Gunnar Skjold
2020-03-24 20:17:44 +01:00
parent d747c84a14
commit 73d00f786a
11 changed files with 346 additions and 243 deletions

View File

@@ -70,7 +70,14 @@ public:
int getProductionCapacity();
void setProductionCapacity(int productionCapacity);
void print(Stream* debugger);
bool isDebugTelnet();
void setDebugTelnet(bool debugTelnet);
bool isDebugSerial();
void setDebugSerial(bool debugSerial);
int getDebugLevel();
void setDebugLevel(int debugLevel);
void print(Print* debugger);
protected:
@@ -103,6 +110,9 @@ private:
int meterType, distributionSystem, mainFuse, productionCapacity;
bool debugTelnet, debugSerial;
int debugLevel;
const int EEPROM_SIZE = 512;
const int EEPROM_CHECK_SUM = 81; // Used to check if config is stored. Change if structure changes
const int EEPROM_CONFIG_ADDRESS = 0;