You are reading a single comment by @user118421 and its replies. Click here to read the full conversation.
  • 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(Seri­al1, 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();
    

    1 Attachment

    • esp.jpg
About

Avatar for user118421 @user118421 started