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