• Hi Robin, thanks a lot for your fast support.

    I found the problem after deep reading of the manuals. My problem was to use setDeepSleep(1) before finish the wifi connection. I had this code:

    var WIFI_NAME = "";
    var WIFI_OPTIONS = { password : "" };
    
    var wifi;
    
    function onInit() {
      wifi = require("Wifi");
      wifi.connect(WIFI_NAME, WIFI_OPTIONS, function(err) {
        if (err) {
         LED1.on() //Red
          return;
        }
        LED2.on(); //Green
      });
      setDeepSleep(1);
    }
    

    If I write setDeepSleep(1) just after LED2.on() everything is working. I would not say it is a bug frimware, it is a bad programming.

    I came acrros with this solution when I read setDeepSleep does not work with USB PC connection.

    Thanks a lot for your help!

About

Avatar for JuanCar @JuanCar started