delay(1) allows ESP8266 to do Wi-Fi tasks. It is recommended to not make any code that blocks this for more than 20/50 miliseconds.
Tested on ESP8266.
Simple test:
long test=millis(); bme.takeForcedMeasurement(); Serial.println(millis()-test);
shows that with X16 oversampling, bme.takeForceMeasurement can block for 70ms (and even over 100ms for first measurement after reset).
delay(1) allows ESP8266 to do Wi-Fi tasks. It is recommended to not make any code that blocks this for more than 20/50 miliseconds. Tested on ESP8266.
Simple test:
long test=millis(); bme.takeForcedMeasurement(); Serial.println(millis()-test);
shows that with X16 oversampling, bme.takeForceMeasurement can block for 70ms (and even over 100ms for first measurement after reset).https://github.com/esp8266/Arduino/issues/2021 https://github.com/esp8266/Arduino/blob/master/doc/reference.md#timing-and-delays