Skip to content

Commit

Permalink
Cloud updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Apr 6, 2024
1 parent 05b3407 commit ee6c249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CloudConnector/src/CloudConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/AmsToMqttBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit ee6c249

Please sign in to comment.