You are reading a single comment by @MaBe and its replies. Click here to read the full conversation.
  • @Gordon some times I still get -1 because of incomplete raw data. Are we losing speed with all stuff in flash, is the used module broken or is some thing wrong with the used code ?

    // simple.js
    
    // 1v85.MaBe_master_e740e65  latest pull and unmodified  
    
    E.on("init",function(){
      dht = require("DHT22").connect(D0);
      setInterval(function(){
        dht.read(function (a) { 
          console.log("Temp is "+a.temp.toFixed(1).toString()+
                      ", RH is "+a.rh.toFixed(1).toString()+
                      "\nraw:"+a.raw+
                      "\nerr:"+a.err+
                      ", cse:"+a.checksumError);},
          1);
      },3000);
    });
    
    save();
    
About

Avatar for MaBe @MaBe started