mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-13 15:37:03 +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;
|
IPAddress dns2;
|
||||||
|
|
||||||
if(ch == NULL) {
|
if(ch == NULL) {
|
||||||
localIp = WiFi.softAPIP();
|
localIp = WiFi.localIP();
|
||||||
subnet = IPAddress(255,255,255,0);
|
subnet = IPAddress(255,255,255,0);
|
||||||
gateway = WiFi.subnetMask();
|
gateway = WiFi.subnetMask();
|
||||||
dns1 = WiFi.dnsIP(0);
|
dns1 = WiFi.dnsIP(0);
|
||||||
|
|||||||
@ -677,6 +677,8 @@ void loop() {
|
|||||||
if(cloud->setup(cc, meterConfig, sysConfig, &hw, &rdc)) {
|
if(cloud->setup(cc, meterConfig, sysConfig, &hw, &rdc)) {
|
||||||
config.setCloudConfig(cc);
|
config.setCloudConfig(cc);
|
||||||
}
|
}
|
||||||
|
cloud->setTimezone(tz);
|
||||||
|
cloud->setConnectionHandler(ch);
|
||||||
}
|
}
|
||||||
config.ackCloudConfig();
|
config.ackCloudConfig();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user