You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • The simplest way is whether the USB connector says 'http://www.espruino.com' on the top, or if it says something like 'CTR1 1234'. Also if it has a little white chip (the fuse) next to that text or not.

    Did you attach B9 to CH_PD as well? I'm wondering if the WiFi hasn't had time to power up before it gets the 'reset' sent - please could you try this?

    digitalWrite(B9,1);
    Serial2.setup(115200, { rx: A3, tx: A2 });
    var wifi;
    setTimeout(function() {
     wifi = require("ESP8266WiFi_0v25").connect(Seri­al2, function(err){
      if (err) throw err;
      console.log("Connecting to WiFi");
      wifi.connect("MY_LAN", "PASSWORD", function(err){
        if (err) throw err;
        console.log("Connected");
        require("http").get("http://www.pur3.co.­uk/hello.txt", function(res){
          console.log("Response: ", res);
          res.on('data', function(d){ console.log("--->"+d); });
        });
      });
     });
     wifi.at.debug();
    }, 1000);
    
About

Avatar for Gordon @Gordon started