Check out http://www.espruino.com/Saving
you need to put your code in an onInit function (or ideally actually wait until you know WiFi is connected with http://www.espruino.com/Reference#l_Wifi_connected).
onInit
@Gordon 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.
Check out http://www.espruino.com/Saving
you need to put your code in an
onInit
function (or ideally actually wait until you know WiFi is connected with http://www.espruino.com/Reference#l_Wifi_connected).