Skip to content

Instantly share code, notes, and snippets.

@AdySan
Created September 6, 2015 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdySan/d637d6dbe7b697b352ba to your computer and use it in GitHub Desktop.
Save AdySan/d637d6dbe7b697b352ba to your computer and use it in GitHub Desktop.
Recover NodeMCU when ini.lua is pointing to a buggy script
file.open("init.lua","w")
file.writeline([[print("Hello, do this at the beginning.")]])
file.writeline([[wifi.setmode(wifi.STATION)]])
file.writeline([[wifi.sta.config("AdyShan","aditya1tannu2")]])
file.close()
node.restart()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment