Avatar for JuanCar


Member since Oct 2018 • Last active Oct 2018
  • 1 conversations

Most recent activity

  • in Interfacing
    Avatar for JuanCar

    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
        LED2.on(); //Green

    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!

  • in Interfacing
    Avatar for JuanCar

    Hi +Gordon, hi all.

    I am have a Espruino WiFi 1.1 running frimware 1v99. I just trying to connect to a wifi home network and it is working when the board it is pluged to the computer, but when I disconnect it and plug it to a battery of 3.7volts using pin + and - the wifi connection fail.

    The code is unther the onInit fuction as the quick start example.

    Does anybody had this fail before?