noob question Humidity sketch



  • Hi,

    is it correct, that the standard humidity sketch is only sending new values when there is a change?

    In my case, as the temp and humidity is constant, there can be hours without new reading ( Iam using DHT11)

    It would be great to get a short feedback if this is "how it should be" in the standard configuration?

    Does anybody has a sketch where every time all the data is send?

    thanks


  • Hero Member

    Just change the following statement (line 41)

    } else if (temperature != lastTemp) {
    

    to

    } else {
    

    and the same with line 54.



  • thanks!
    is the reason for this saving of battery live? -> less sending?


  • Hero Member

    Yes, I think that is the main reason. 🙂


Log in to reply
 

Suggested Topics

  • 4
  • 20
  • 9
  • 4
  • 8
  • 17

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts