flipdot/flipcontrol_esp32/update.sh
2024-01-07 22:37:45 +01:00

12 lines
No EOL
338 B
Bash

#!/bin/sh
# pip install paho-mqtt
# Enable OTA in config.json
# Do not forget to increment firmware version
if pio run ; then
echo "Build sucessful. Running ota update."
python ota_updater.py -l 10.0.0.1 -t "" -i "flipdot" .pio/build/esp32doit-devkit-v1/firmware.bin
else
echo "Build unsucessful. Not running ota update."
fi