You are reading a single comment by @JumJum and its replies. Click here to read the full conversation.
  • During testing CC3000 and some other requires, sometimes the board stopped working and I had unplug to get it back to work.
    After some testing, this workflow breaks Espruino

    • send code to Espruino Board
    • wait to get IP adress
    • disconnect from Espruino Board
    • connect to Espruino Board
      Some secondes later I get the timeout error (4101).
      Next another error comes up, "got '<' expected EOF at line 1 col 2...."
      Version 1v50 and this source

      
      var wlan = require("CC3000").connect();
      var ip;
      wlan.connect( "JUMWARE-LTE", "B73FD193D04293D", function (s) {
      if (s=="dhcp") {
      ip = wlan.getIP().ip;
      console.log("My IP is "+wlan.getIP().ip);
      require("http").createServer(function (req, res) {
        res.writeHead(200, {'Content-Type': 'text/plain'});
        res.write('IP is ' + ip + '<br>');      
        res.end();
      }).listen(80);
      }
      });
      
      
About

Avatar for JumJum @JumJum started