Created
September 6, 2015 00:26
-
-
Save AdySan/d637d6dbe7b697b352ba to your computer and use it in GitHub Desktop.
Recover NodeMCU when ini.lua is pointing to a buggy script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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