delay / esp_delay: transparently manage recurrent scheduled functions by d-a-v · Pull Request #8802 · esp8266/Arduino (original) (raw)
Recurrent scheduled functions will always be running in background.
esp_delay()
's interval (intvl_ms
) is internally kept to its highest value allowing to honor recurrent scheduled functions requirements.
This allows examples like EthClient to keep answering to ping
while "trapped" in a delay()
.
More generally it transparently allows to keep with the arduino and nonos-sdk trivial programming way and still use background services or drivers running regularly.