Hello, the javascript code i have keeps giving me the error "module wifi not found", The picture is what my pico looks like.
---------------------------------------- Java Script
var wifi = require("wifi");
var ssid = "Temp-Student";
var pw = "TempStu1";
wifi.connect(ssid, {password:pw}, function(err){
console.log("connected? err=", err, "info=", wifi.getIP());
});
wifi.stopAP();
---------------------------------------- Console
echo(0);
ERROR: SD card must be setup with E.connectSDCard first
WARNING: Module "Wifi" not found
Uncaught Error: Field or method "connect" does not already exist, and can't create it on undefined
at line 1 col 5
wifi.connect(ssid, {password:pw}, function(err){
^
Uncaught Error: Field or method "stopAP" does not already exist, and can't create it on undefined
at line 1 col 5
wifi.stopAP();
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.
Hello, the javascript code i have keeps giving me the error "module wifi not found", The picture is what my pico looks like.
---------------------------------------- Java Script
var wifi = require("wifi");
var ssid = "Temp-Student";
var pw = "TempStu1";
wifi.connect(ssid, {password:pw}, function(err){
console.log("connected? err=", err, "info=", wifi.getIP());
});
wifi.stopAP();
---------------------------------------- Console
| |_ ___ ___ _ ||___ ___
| |_ -| . | _| | | | | . |
||| || |_|||_|_|
1v83 Copyright 2015 G.Williams
1 Attachment