STA or AP mode browser unable to connect to ESP8266-12

Posted on
Page
of 2
Prev
/ 2
  • #12 has a typo: res.write should be res.end

    var http = require("http");
    var server = http.createServer(function (req, res) {
      console.log("connect...");
      res.writeHead(200);
      res.end('<html><body><H1>Hello World</H1></body></html>');
    });
    
    server.listen(8080);
    
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

STA or AP mode browser unable to connect to ESP8266-12

Posted by Avatar for Robin @Robin

Actions