Ok, after a while i successfull built something that seems to work:
function onInit(){ var wifi = require("Wifi"); wifi.connect("ssid", {password: "password"}, function(err){if(err)console.log(err); else { console.log("connesso!"); var http = require("http"); http.createServer(function (req, res) { res.writeHead(200); res.end("Hello World"); }).listen(8080);}}); wifi.save(); } save();
Since @tve pointed me to the good explanation of @allObjects things are slightly more clear. Thanks everyone!
@MarcoM 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.
Ok, after a while i successfull built something that seems to work:
Since @tve pointed me to the good explanation of @allObjects things are slightly more clear.
Thanks everyone!