Wifi module not found #5255
Replies: 1 comment
-
Posted at 2016-01-20 by UliMerkel IIRC, there is a post that the module name has to be written in lowercase: Posted at 2016-01-20 by Ollie Uppercase "Wifi" in later builds. Are you connected - do you get a return from wifi.getIP()? It was case that warnings could be ignored. I don't recall seeing in more recent builds. Posted at 2016-01-20 by tve The warning will go away once the web site is updated with v1.85... Please ignore the warning for now. Posted at 2016-01-21 by cwilt It does not connect. Since the module is not found each line produces an error. Am I missing a step? Looking at the espruino\modules site there is no Wifi module there. Posted at 2016-01-21 by tve it would help if you posted what you see, starting with Posted at 2016-01-21 by Ollie Straight forwards normally. You've missed nothing in your JS code as far as I can see. What build have you flashed? But also, note the build post in this forum (http://forum.espruino.com/conversations/279176/) has the latest build at the end of the thread. If you are using an early build you could well be seeing wacky stuff as well as using a deprecated API. Could this be it? Posted at 2016-01-22 by cwilt You were correct. I had loaded an old version by mistake. Works now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-01-20 by cwilt
Just loaded up espruino on a nodemcu and trying the sample code...
var wifi = require("Wifi");
wifi.connect("my-ssid", {password:"my-pwd"}, function(err){
console.log("connected? err=", err, "info=", wifi.getIP());
});
wifi.stopAP();
I keep getting Warning: "Wifi" module not found.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions