I have been using freertos for a project and I’ve done 3 tasks which all worked perfectly except for one which reads the temperature and humidity of dht11. When I call dht.readTemperature() or dht.readHumidity() it block indefinetely. I suspect it is connected to the fact that the library uses the delay() function. Any way I can solve this without remaking the dht11 library?
Code that blocks:
void readSensor( void *pvParameters )
t= dht.readTemperature(); h = dht.readHumidity(); hic = dht.computeHeatIndex(t, h, false); vTaskDelay(1000 / portTICK_PERIOD_MS);