Wifi module not found???? #847
Replies: 7 comments
-
Posted at 2016-02-18 by Cale Looks like your connecting the esp8266. You need to use the code from here. WiFi is not a module. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-19 by @gfwilliams Yep, @Cale is right - since Wifi isn't built in on the Pico, you need to load up an ESP8266 modue to tell it what you're connecting it to:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-19 by ert4 @gordon I have put in the code, but i'm not getting any a weird message code in console when i type in wifi.connect(). | |_ ___ ___ _ ||___ ___
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-19 by DrAzzy Why are you using that old version of Espruino? Update to v84 (and to v85 when it comes out) Might you have an ESP8266 with an old version of the code on it? In that case, you use a different module and baud rate as noted above. Also - put a capacitor between Vcc and Gnd right next to the ESP8266, like 10-100uf range, preferably ceramic. I've had problems with ESP-01 boards like that resetting themselves without a cap on them... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-20 by @gfwilliams
It's probably best to start off using this code from the link above:
It'll just try and communicate with the board using different baud rates, so might help to narrow it down also: to format code in the forum, just add 3 backticks before and 3 after (each on a new line, with a blank line before and after) - just google 'markdown' for some examples. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-22 by ert4 Fix it just needed more power. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-23 by @gfwilliams Great, glad you got it sorted! ... I also just moved this into 'Interfacing' from the ESP8266 forum - that one was for running Espruino actually on the ESP8266 itself |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-18 by ert4
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
| |_ ___ ___ _ ||___ ___
| | -| . | _| | | | | . |
||| || |||||_|
|| http://espruino.com
1v83 Copyright 2015 G.Williams
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions