From ee6c2493708e2ee1aa83cf6f45448f2bbf8f8e17 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Sat, 6 Apr 2024 12:53:36 +0200 Subject: [PATCH] Cloud updates --- lib/CloudConnector/src/CloudConnector.cpp | 2 +- src/AmsToMqttBridge.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/CloudConnector/src/CloudConnector.cpp b/lib/CloudConnector/src/CloudConnector.cpp index 69bc824f..f131b59f 100644 --- a/lib/CloudConnector/src/CloudConnector.cpp +++ b/lib/CloudConnector/src/CloudConnector.cpp @@ -184,7 +184,7 @@ void CloudConnector::update(AmsData& data, EnergyAccounting& ea) { IPAddress dns2; if(ch == NULL) { - localIp = WiFi.softAPIP(); + localIp = WiFi.localIP(); subnet = IPAddress(255,255,255,0); gateway = WiFi.subnetMask(); dns1 = WiFi.dnsIP(0); diff --git a/src/AmsToMqttBridge.cpp b/src/AmsToMqttBridge.cpp index 4813aa60..16d54cb8 100644 --- a/src/AmsToMqttBridge.cpp +++ b/src/AmsToMqttBridge.cpp @@ -677,6 +677,8 @@ void loop() { if(cloud->setup(cc, meterConfig, sysConfig, &hw, &rdc)) { config.setCloudConfig(cc); } + cloud->setTimezone(tz); + cloud->setConnectionHandler(ch); } config.ackCloudConfig(); }