You are reading a single comment by @CrashingDutchman and its replies. Click here to read the full conversation.
  • Finally found some time to pick this up again. Sending the sample in­iFi_0v25.js doesn't work. I understand that this was created for the Espruino on ESP8266. Correct?

    I am using a NodeMCU and it breaks on A2 and A3 (not defined). I converted the original line from the example to:

    Serial2.setup(115200, { rx: NodeMCU.D9, tx : NodeMCU.D10 });

    where it was:

    Serial2.setup(115200, { rx: A3, tx : A2 });

    The sample stops at

    Connecting to ESP8266
    Connecting to WiFi
    >Uncaught Error: CIPSTART failed (Timeout)
     at line 1 col 72
    ...'CIPSTART failed (Timeout)');
    in function called from system

    The sample code I used is:

    Serial2.setup(115200, { rx: NodeMCU.D9, tx : NodeMCU.D10 });
    console.log("Connecting to ESP8266");
    var wifi = require("mywifi").connect(Serial2, function() {
      wifi.reset(function() {
        console.log("Connecting to WiFi");
        wifi.connect("my own ssid","password", function() {
          require("http").get("http://www.espruino­.com", function(res) {
            console.log("Response: ",res);
            res.on('data', function(d) {

    It seems to break on the get() of Any ideas?

    Edit: I created an Espruino IDE project for this in a folder on a local drive.