Skip to content

Commit

Permalink
Added the Door Name to the MQTT events loging
Browse files Browse the repository at this point in the history
To identify wich door throus the event the Door Name is added to the MQTT event logs
  • Loading branch information
marelab committed Jun 13, 2019
1 parent 308b170 commit e2efb96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/log.esp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ void ICACHE_FLASH_ATTR writeEvent(String type, String src, String desc, String d
root["time"] = now();
if ((mqttEvents) && (mqttenabled==1)){ // log to MQTT
root["cmd"] = "event";
root["door"] = deviceHostname;
mqtt_publish_event(&root);
}
else // log to file
Expand Down

0 comments on commit e2efb96

Please sign in to comment.