NTPClient icon indicating copy to clipboard operation
NTPClient copied to clipboard

Add event hooks when NTP update is started and complete.

Open stash-s opened this issue 6 years ago • 1 comments
trafficstars

Hello,

I thought it would be useful and consistent with other Arduino libraries to allow triggering some actions when actual NTP conversation starts and ends.

In my case this API greatly simplifies showing NTP conversation status on my device. NTPClient::update() method is called each time in loop(), but only once per specified period actual NTP conversation is started under the hood.

I did not find any other method to figure out if update() will actually start NTP dialog before I call it in loop() block.

Best regards, Staszek

stash-s avatar May 15 '19 20:05 stash-s

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 09 '21 13:04 CLAassistant