lua - How to recover nodemcu infinite loop -
i made mistake loading init.lua infinite loop on nodemcu/esp8266 board.
then board keep rebooting without other instruction executed.
i = 10 timerid = 0 timerdelay = 30000 -- milisec pin = 5 gpio.mode(pin,gpio.input) repeat( print(gpio.read(pin)) = + 1 end) until < 5
i tried flashing board
python esptool.py -p /dev/tty.wchusbserial1450 run python esptool.py -p /dev/tty.wchusbserial1450 write_flash 0x0000 ../nodemcu_latest.bin
and after fix code , load again , works fine
Comments
Post a Comment