Aggiunto supporto mqtt per la pubblicazione dello stato in formato json verso il broker

This commit is contained in:
lejubila
2018-09-20 10:53:40 +02:00
parent 0d748031fd
commit e9a676188f
7 changed files with 103 additions and 8 deletions

View File

@@ -89,6 +89,9 @@ function trigger_event {
local ec=$?
#echo "$EVENT ec=$ec" >> /tmp/piGarden.testevent
mqtt_status &
if [ $ec -ne 0 ]; then
log_write "Stop events chain for exit code $ec in $current_event_dir/$f"
return $ec