Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delay / esp_delay: transparently manage recurrent scheduled functions #8802

Merged
merged 10 commits into from
Jan 14, 2023

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Jan 14, 2023

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.

@d-a-v d-a-v added the alpha included in alpha release label Jan 14, 2023
@d-a-v d-a-v added this to the 3.1.1 milestone Jan 14, 2023
cores/esp8266/Schedule.cpp Outdated Show resolved Hide resolved
cores/esp8266/Schedule.h Outdated Show resolved Hide resolved
cores/esp8266/coredecls.h Outdated Show resolved Hide resolved
libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp Outdated Show resolved Hide resolved
libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp Outdated Show resolved Hide resolved
cores/esp8266/core_esp8266_main.cpp Outdated Show resolved Hide resolved
cores/esp8266/Schedule.h Outdated Show resolved Hide resolved
@d-a-v d-a-v merged commit 39080e3 into esp8266:master Jan 14, 2023
@d-a-v d-a-v deleted the autosplitdelay branch January 14, 2023 21:26
@mcspr mcspr mentioned this pull request Jun 27, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha included in alpha release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants