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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -