flipdot/flipcontrol_esp32/update.sh

12 lines
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