You are reading a single comment by @Linyx and its replies. Click here to read the full conversation.
  • use console.log(global["\xFF"].timers);

    I see nothing wrong

    Log:

     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v04 (c) 2019 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    >
    { "err": true, "checksumError": true,
      "raw": "10000001001000000000000001101000000010010",
      "temp": -1, "rh": -1 }
    { "free": 1962, "usage": 338, "total": 2300, "history": 120,
      "gc": 0, "gctime": 1.998 }
    [
      undefined,
      { "time": 4441824, "interval": 5000000,
        "callback": function () {
      this.dht.read((response) => {
          console.log(response)
          console.log(process.memory())
          console.log(global["\xFF"].timers);
          console.log('_____')
        });
    }
       },
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      { "time": 11404,
        "callback": function () {a.read(c,--d)}
       },
      undefined,
      { "time": 61235,
        "callback": function () {
      a.watch&&(a.watch=clearWatch(a.watch));var e=parseInt(b.substr(2,8),2)+parseInt(b.substr(10,8),2)+parseInt(b.substr(18,8),2)+parseInt(b.substr(26,8),2);e&&(e&255)==parseInt(b.substr(34,
    8),2)?c({raw:b,rh:.1*parseInt(b.substr(2,16),2),temp:.2*parseInt(b.substr(19,15),2)*(.5-b[18])}):1<d?setTimeout(function(){a.read(c,--d)},500):c({err:!0,checksumError:0<e,raw:b,temp:-1,rh:-1})
    }
       }
     ]
    _____
    {
      "raw": "010000010001111110000000011010000000100011",
      "rh": 115, "temp": 41.6 }
    { "free": 1942, "usage": 358, "total": 2300, "history": 120,
      "gc": 0, "gctime": 2.015 }
    [
      undefined,
      { "time": 4315877, "interval": 5000000,
        "callback": function () {
      this.dht.read((response) => {
          console.log(response)
          console.log(process.memory())
          console.log(global["\xFF"].timers);
          console.log('_____')
        });
    }
       },
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      { "time": 2925,
        "callback": function () {
      a.watch&&(a.watch=clearWatch(a.watch));var e=parseInt(b.substr(2,8),2)+parseInt(b.substr(10,8),2)+parseInt(b.substr(18,8),2)+parseInt(b.substr(26,8),2);e&&(e&255)==parseInt(b.substr(34,
    8),2)?c({raw:b,rh:.1*parseInt(b.substr(2,16),2),temp:.2*parseInt(b.substr(19,15),2)*(.5-b[18])}):1<d?setTimeout(function(){a.read(c,--d)},500):c({err:!0,checksumError:0<e,raw:b,temp:-1,rh:-1})
    }
       },
      undefined,
      undefined,
      { "time": 508484,
        "callback": function () {a.read(c,--d)}
       }
     ]
    _____
    {
      "raw": "010000001001000001000000001101000000010011",
      "rh": 57.7, "temp": 20.8 }
    { "free": 1954, "usage": 346, "total": 2300, "history": 120,
      "gc": 0, "gctime": 1.995 }
    [
      undefined,
      { "time": 3636446, "interval": 5000000,
        "callback": function () {
      this.dht.read((response) => {
          console.log(response)
          console.log(process.memory())
          console.log(global["\xFF"].timers);
          console.log('_____')
        });
    }
       },
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      undefined,
      { "time": 42163,
        "callback": function () {
      a.watch&&(a.watch=clearWatch(a.watch));var e=parseInt(b.substr(2,8),2)+parseInt(b.substr(10,8),2)+parseInt(b.substr(18,8),2)+parseInt(b.substr(26,8),2);e&&(e&255)==parseInt(b.substr(34,
    8),2)?c({raw:b,rh:.1*parseInt(b.substr(2,16),2),temp:.2*parseInt(b.substr(19,15),2)*(.5-b[18])}):1<d?setTimeout(function(){a.read(c,--d)},500):c({err:!0,checksumError:0<e,raw:b,temp:-1,rh:-1})
    }
       }
     ]
    _____
    
About

Avatar for Linyx @Linyx started