An infinite loop should not be used in init.lua as it will make the chip unresponsive. If that happens flash the firmware again using esptool.py.If that does not clear init.lua flash an old firmware and then flash a new one as shown in the previous tutorial. If absolutely necessary ,insert a delay of 5 seconds before the infinite loop so that the file.format() may be requested after reset.

All content on this site is available under the Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)license.