You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • edit: It now works, and I updated the 1v72 esp8266 firmware on the site.

    You can use it like CC3000 or WIZnet, but a few things (like getIP) are still missing right now. More info at http://www.espruino.com/ESP8266

    Stuff like this should work:

    Serial4.setup(115200, { rx: C11, tx : C10 });
    console.log("Connecting to ESP8266");
    var wifi = require("ESP8266").connect(Serial4, function() {
      console.log("Connecting to WiFi");
      wifi.connect("WiFi_Name","WPA2_Key", function() {
        console.log("Connected");
        require("http").get("http://192.168.1.50­", function(res) {
          console.log("Response: ",res);
          res.on('data', function(d) {
            console.log("--->"+d);
          });
        });
      });
    });
    
About

Avatar for Gordon @Gordon started