Code for a smart light built using an esp8266
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
438 B

3 years ago
nodemcu-tool reset
esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py --port /dev/ttyUSB0 write_flash -fm qio 0x00000 firmware/firmware.bin
3 years ago
CONN_DELAY=1000
nodemcu-tool --connection-delay $CONN_DELAY upload *.lua libs/*
#nodemcu-tool upload *.lua libs/*
3 years ago
while [[ $? != 0 ]]; do
nodemcu-tool --connection-delay $CONN_DELAY upload *.lua libs/*
3 years ago
done
#
echo 'dofile("init.lua")' | nodemcu-tool --connection-delay $CONN_DELAY terminal