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(); }