You are reading a single comment by @Kolban and its replies. Click here to read the full conversation.
  • I think we have just achieved a milestone. We now have an ESP8266 running a simple HTTP server where the JavaScript to do that should be the same generic JavaScript as would be used for other Espruino boards.

    The sample JavaScript used is:

    var http = require("http");
    var httpSrv = http.createServer(function(request, response) {
        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 again soon.");
        } else {
            response.write("Sorry ... I didn't understand!");
        }
        response.end("</body></html>");
    });
    httpSrv.listen(80);
    

    The latest binaries of the firmware as of 9/25 onwards should be used for testing. See here for URL information:

    https://github.com/esp8266-espruino/esp8266-espurino/wiki/07-Samples

About

Avatar for Kolban @Kolban started