stop then script from sleeping the esp in case of an error

This commit is contained in:
Your Name 2021-06-29 20:14:36 +02:00
parent 54398b7bd6
commit c22c14a42b

View File

@ -21,6 +21,7 @@ fi
mosquitto_pub -h $mqttHost -t "${mqttPrefix}${homieId}/stay/alive/set" -m "1" -r
echo "Waiting ..."
mosquitto_sub -h $mqttHost -t "${mqttPrefix}${homieId}/#" -R -C 1
set -e
python ota_updater.py -l $mqttHost -t "$mqttPrefix" -i "$homieId" $firmwareFile
mosquitto_pub -h $mqttHost -t "${mqttPrefix}${homieId}/stay/alive/set" -m "0" -r