You are reading a single comment by @Planer and its replies. Click here to read the full conversation.
  • HI Everyone. Realy working code after save() and power restart ESP8266-12F FW1.91, 1.6 boot.

    function onPageRequest(req, res) {
     res.writeHead(200, {'Content-Type':'text/html'});
     res.write('Hello Bro');
     res.end('');
    }
    
    var wifi = require("Wifi");
    
    function startServer(){
       console.log("server started");
       require("http").createServer(onPageReque­st).listen(8080);
       console.log("APIp="+wifi.getAPIP().ip);
       console.log("StationIP="+wifi.getIP().ip­);
    }
    
     wifi.on('connected', startServer);
    
    
About

Avatar for Planer @Planer started