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 -

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

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -