var wifi = require("Wifi"); wifi.connect("XXXX", {password:"XXXXXX"}, function(e) { if (e) {
console.log('error during connect:',e); wifi.disconnect();
} else {
console.log('connected to',ssid); wifi.stopAP(); //wifi.save();
} });
1 Attachment
@影之刃 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.
var wifi = require("Wifi");
wifi.connect("XXXX", {password:"XXXXXX"}, function(e) {
if (e) {
} else {
}
});
1 Attachment