DHT-sensor-library
DHT-sensor-library copied to clipboard
Async
Hi,
I did some changes in order to avoid the blocking delay in the flow.
Basically I created a loop function that is called in the main loop. It has an internal state machine for the operation. Clearly, the reading phase is done in a blocking way.
I tested it on my NodeMCU and WeMos board and it works fine.
I suggest to create a dedicated branch (like I did). Maybe, in the future, a common solution (where the user can choise which method he prefers) can be done in order to get an unique library.
Regards, Salvo