mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-26 20:27:27 +00:00
Only report realtime data on MQTT if EnergyAccounting is initialized
This commit is contained in:
@@ -26,6 +26,10 @@ void EnergyAccounting::setTimezone(Timezone* tz) {
|
||||
this->tz = tz;
|
||||
}
|
||||
|
||||
bool EnergyAccounting::isInitialized() {
|
||||
return this->init;
|
||||
}
|
||||
|
||||
bool EnergyAccounting::update(AmsData* amsData) {
|
||||
if(config == NULL) return false;
|
||||
time_t now = time(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user