You are reading a single comment by @Majkl and its replies. Click here to read the full conversation.
  • Hello friends. I have a problem with

    Uncaught No 'ready' after AT+RST
     at line 2 col 18
      if (err) throw err;
    
    Serial2.setup(115200, { rx: A3, tx : A2 });
    var wifi = require("ESP8266WiFi_0v25").connect(Seri­al2, function(err) {
      if (err) throw err;
      wifi.reset(function(err) {
        if (err) throw err;
        console.log("Connecting to WiFi");
        wifi.connect("WiFi_Name","WPA2_Key", 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);
            });
          });
        });
      });
    });
    

    When I was testing baud rates, only reasonable output was:

    AT+GMR\r\r\nAT version:0.21.0.0\r\nSDK version:0.9.5\r\n\r\nOK\r\n
    

    What am I doing wrong? Red light is on. When I removed the "if(err) throw err;" the script continues and Blue light is sometimes blinking (when trying to connect)

About

Avatar for Majkl @Majkl started