You are reading a single comment by @Linyx and its replies. Click here to read the full conversation.
  • Hmm, can't test this by myself (no DHT22).

    • could you test with a not minified module ?
    • could you add console.log(process.memory().free) to setWatch to see wether it happens there ?
    • next possible point could be one of the setTimeout
  • This log if call read every 10 secs, setWatch not work:

     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| 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": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.905 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.887 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.892 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.892 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.887 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.892 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.892 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.892 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.888 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.884 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.884 }
    _____
    { "err": true, "checksumError": false,
      "raw": "",
      "temp": -1, "rh": -1 }
    { "free": 2028, "usage": 272, "total": 2300, "history": 141,
      "gc": 0, "gctime": 1.887 }
    _____
    > 
    
About

Avatar for Linyx @Linyx started