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(onPageRequest).listen(8080); console.log("APIp="+wifi.getAPIP().ip); console.log("StationIP="+wifi.getIP().ip); } wifi.on('connected', startServer);
@Planer started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
HI Everyone. Realy working code after save() and power restart ESP8266-12F FW1.91, 1.6 boot.