Skip to content

Introduce async NTP methods#241

Open
makise-homura wants to merge 3 commits into
arduino-libraries:masterfrom
makise-homura:async
Open

Introduce async NTP methods#241
makise-homura wants to merge 3 commits into
arduino-libraries:masterfrom
makise-homura:async

Conversation

@makise-homura

Copy link
Copy Markdown

Waiting for a response to NTP query might be a time-consuming operation, so it is not perfect that forceUpdate() blocks in this case.

I've implemented startUpdate() and finishUpdate() methods that may be useful to process a response once it is received, not block while waiting for it.

An example is added too to show how to use these methods, Async.ino.

@CLAassistant

CLAassistant commented Apr 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

Memory usage change @ aca4ce6

Board flash % RAM for global variables %
esp8266:esp8266:huzzah N/A N/A N/A N/A
Click for full report table
Board examples/Advanced
flash
% examples/Advanced
RAM for global variables
% examples/Async
flash
% examples/Async
RAM for global variables
% examples/Basic
flash
% examples/Basic
RAM for global variables
% examples/IsTimeSet
flash
% examples/IsTimeSet
RAM for global variables
%
esp8266:esp8266:huzzah N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
Click for full report CSV
Board,examples/Advanced<br>flash,%,examples/Advanced<br>RAM for global variables,%,examples/Async<br>flash,%,examples/Async<br>RAM for global variables,%,examples/Basic<br>flash,%,examples/Basic<br>RAM for global variables,%,examples/IsTimeSet<br>flash,%,examples/IsTimeSet<br>RAM for global variables,%
esp8266:esp8266:huzzah,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: code Related to content of the project itself type: enhancement Proposed improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants