I have a script that is designed to connect the ESP01 to any unencrypted wifi it finds.
The first time I run the script (init.lua) it works flawlessly. Every time after the first time the script is run it causes the module to crash in ~5sec with no error generated. The only way for me to get the script to run again is to reflash the AT sdk then noeMCU.
What could be causing this? It's rather frustrating that the script executes no problem the first time, but fails every time after that. It seem like my software is OK. Could it be a hardware limitation that I am not accounting for in my script? Power supply problem? What would cause the module to reboot with no error thrown?