• ok, I have a new question. I get to connect Espuino Web from Google Chrome to my Generic ESP8266 with Success, but when I send the code to ESP8266 I see a that error message ( Module ESP8266 not Found ). How could I fix it ?

    The Screen:

    My code:

    function beServer() {
      var http = require("http");
      var httpServer = http.createServer(function(request, response) {
       print(request);
       
       if (request.url == "/favicon.ico") {
         response.writeHead(404);
    	 response.end("");
    	 return;
    	 }
    	 
    	 response.write("<html><body>");
    	 if(request.url == "/hello") {
    	   response.write("<b>Welcome</b> to the ESP8266 test.");
    	 } else if (request.url == "/goodbye") {
    	   response.write("<b>Please</b> come back aggain soon.");
    	 } else {
    	   response.write("Sorry ... I didn't understand!");
    	 }
    	 response.end("</body></html>");
    }); // Endof on new browser request
    
    httpServer.listen(90);
    print("Now being an HTTP Server!");
    } // End of beServer
    
    var ssid = "sweetie";
    var password = "kolbanpassword";
    
    //VConnect to the access point
    var wifi = require("wifi");
    print("Connectin to access point.");
    wifi.connect(ssid, password, null, function(err, ipInfo) {
      if(err) {
      print("Error connecting to access point.");
      return;
      }
      var ESP8266 = require("ESP8266");
      print("Connect says that we are now connected!!!");
      print("Starting web server at http://" + ESP8266.getAddressAsString(ipInfo.ip) + ":80");
      brServer();
      });
    

    Thank you so much for all.

About

Avatar for user65434 @user65434 started