Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
merlokk committed May 4, 2017
1 parent f6be6d6 commit 38e101d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ESP8266EASTRON/general.ino
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ void mqttPublishRegularState() {
s = NTP.getTimeDateString(NTP.getFirstSync());
mqttPublishState("LastBootDateTime", s.c_str());

if (eastron.Connected) {
#ifdef MODBUS_OBJ_NAME
if (MODBUS_OBJ_NAME.Connected) {
s = NTP.getTimeDateString();
mqttPublishState("LastConnectedDateTime", s.c_str());
}
#endif
}

#ifdef MODBUS_OBJ_NAME
Expand Down

0 comments on commit 38e101d

Please sign in to comment.