DHT-sensor-library icon indicating copy to clipboard operation
DHT-sensor-library copied to clipboard

Async

Open nos86 opened this issue 6 years ago • 0 comments

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

nos86 avatar Mar 01 '18 00:03 nos86