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?
@cwilt 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.
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?