diff --git a/esp32/host/upload-via-mqtt.sh b/esp32/host/upload-via-mqtt.sh index 500ce40..6a4bf44 100755 --- a/esp32/host/upload-via-mqtt.sh +++ b/esp32/host/upload-via-mqtt.sh @@ -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