You are reading a single comment by @MarcoM and its replies. Click here to read the full conversation.
  • 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!

About

Avatar for MarcoM @MarcoM started