RobTillaart / DHTNew

Arduino library for DHT11 and DHT22 with automatic sensor recognition
MIT License
99 stars 15 forks source link

Example needed for waitForRead flag #5

Closed RobTillaart closed 4 years ago

RobTillaart commented 4 years ago

version 0.1.7 supports a waitForRead flag, however an example showing its use is missing at the moment. The example should show the use and the added value of the flag. If needed a readme.md file to explain the example should be added.

RobTillaart commented 4 years ago

@Mr-HaleYa As you asked for this waitForRead functionality could you mind writing a small example sketch showing the effects of using this flag or not.? Please keep it in line with the other examples

Mr-HaleYa commented 4 years ago

Yes when I have some free time off of my current project I will write an example sketch. I live on the west coast of the USA so it is very early in the morning when you get online 🙃

Mr-HaleYa commented 4 years ago

I modified the test sketch so it stayed inline. I rearranged the columns and added an AGE column to the start to tell if it is a NEW or OLD reading. It works exactly as it is supposed to. I kept the sensor TYPE column so if they were to change the sensor type while testing they would see the change in the sketch and the time difference in the TIME column for when WaitForReading is set to true.

RobTillaart commented 4 years ago

Thanks, also for catching the typos.