Improved ethernet connection

This commit is contained in:
Gunnar Skjold
2023-12-10 16:56:13 +01:00
parent ee462ec468
commit 0f22fd561e
11 changed files with 112 additions and 38 deletions

View File

@@ -19,6 +19,7 @@
#include "RemoteDebug.h"
#include "PriceService.h"
#include "RealtimePlot.h"
#include "ConnectionHandler.h"
#if defined(ESP8266)
#include <ESP8266WiFi.h>
@@ -56,6 +57,7 @@ public:
void setPriceSettings(String region, String currency);
void setMeterConfig(uint8_t distributionSystem, uint16_t mainFuse, uint16_t productionCapacity);
void setMqttHandler(AmsMqttHandler* mqttHandler);
void setConnectionHandler(ConnectionHandler* ch);
private:
RemoteDebug* debugger;
@@ -76,6 +78,7 @@ private:
EnergyAccounting* ea = NULL;
RealtimePlot* rtp = NULL;
AmsMqttHandler* mqttHandler = NULL;
ConnectionHandler* ch = NULL;
bool uploading = false;
File file;
bool performRestart = false;