However, when I then run this the Pixl.js just disconnects from my PC Espruino Web IDE bluetooth and enters into a boot loop..;
var WIFI_NAME = "x";
var WIFI_PASS = "x";
Serial1.setup(115200, { rx: D1, tx : D0 });
var wifi = require("ESP8266WiFi_0v25").connect(Serial1, function(err) {
// ^^^^^^^^^^^^^^^^
// Use ESP8266WiFi here (and 9600 baud) if you have an ESP8266 with firmware older than 0.25
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
require("http").get("http://www.pur3.co.uk/hello.txt", function(res) {
console.log("Response: ",res);
res.on('data', function(d) {
console.log("--->"+d);
});
});
});
});
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.
I have not received the TTL USB adaptor yes but tried this;
I connected the Pixl.js to the ESP8266 Esp-01 like this;
Pixl.js <-> Esp01
GND <-> GND
3.3V <-> EN
3.3V <-> 3.3V
D0 <-> RX
D1 <-> TX
Then ran this;
The result;
However, when I then run this the Pixl.js just disconnects from my PC Espruino Web IDE bluetooth and enters into a boot loop..;