mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-13 07:29:23 +00:00
Cloud updates
This commit is contained in:
parent
05b340738e
commit
ee6c249370
@ -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);
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user