How are you powering the Espruino WiFi? Please could you run E.getAnalogVRef() and check what value it returns?
E.getAnalogVRef()
It's possible that there's some issue with the voltage on the device which is causing the Wifi module not to boot?
It also seems that maybe there's some other code in there that you're uploading (eg you're calling getWeather). Please could you try:
getWeather
require("Storage").eraseAll()
Upload this most basic code from https://www.espruino.com/WiFi#connecting-to-an-ap and see if you still have the issue:
var WIFI_NAME = ""; var WIFI_OPTIONS = { password : "" }; var wifi = require("Wifi"); wifi.connect(WIFI_NAME, WIFI_OPTIONS, function(err) { if (err) { console.log("Connection error: "+err); return; } console.log("Connected!"); getPage(); }); function getPage() { require("http").get("http://www.pur3.co.uk/hello.txt", function(res) { console.log("Response: ",res); res.on('data', function(d) { console.log("--->"+d); }); }); }
@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.
How are you powering the Espruino WiFi? Please could you run
E.getAnalogVRef()
and check what value it returns?It's possible that there's some issue with the voltage on the device which is causing the Wifi module not to boot?
It also seems that maybe there's some other code in there that you're uploading (eg you're calling
getWeather
). Please could you try:require("Storage").eraseAll()
on the left hand side of the IDEUpload this most basic code from https://www.espruino.com/WiFi#connecting-to-an-ap and see if you still have the issue: