Where is that function call to main() coming from? Do you have code saved that is loaded at boot?
main()
You should get this, or similar, this is the output of a connection with screen:
| __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |_____|___| _|_| |___|_|_|_|___| |_| http://espruino.com 1v91.122 Copyright 2016 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate Flash map 4MB:512/512, manuf 0xef chip 0x4016 >var wifi=require("Wifi") =function () { [native code] } >wifi.getStatus() ={ "mode": "sta", "station": "connected", "ap": "disabled", "phy": "11n", "powersave": "ps-poll", "savedMode": "off" }
In the terminal try issue a reset() first, this will clear saved code, then issue a save() then try again.
reset()
save()
@Ollie started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Where is that function call to
main()
coming from? Do you have code saved that is loaded at boot?You should get this, or similar, this is the output of a connection with screen:
In the terminal try issue a
reset()
first, this will clear saved code, then issue asave()
then try again.