Many thanks for the super clear reply and image! I followed it but unfortunately I receive the error;
Uncaught No 'ready' after AT+RST
when running the below code (from the instruction page). Any idea what I may be doing wrong?
var WIFI_NAME = "x";
var WIFI_PASS = "x";
var wifi;
function getPage() {
require("http").get("http://www.pur3.co.uk/hello.txt", function(res) {
console.log("Response: ",res);
res.on('data', function(d) {
console.log("--->"+d);
});
});
}
function go() {
Serial1.setup(115200,{rx:D0,tx:D1});
wifi = require("ESP8266WiFi_0v25").connect(Serial1, function(err) {
if (err) throw err;
console.log("Connecting to WiFi");
wifi.connect(WIFI_NAME, WIFI_PASS, function(err) {
if (err) throw err;
console.log("Connected");
// Now you can do something, like an HTTP request
getPage();
});
});
}
function onInit() {
Terminal.setConsole();
}
go();
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.
Many thanks for the super clear reply and image! I followed it but unfortunately I receive the error;
when running the below code (from the instruction page). Any idea what I may be doing wrong?
1 Attachment