NTPClient
NTPClient copied to clipboard
Question: Is there a way to disable auto-update?
Is there a way to set the update to manual? Or change it to daily? Thank you very much in advance!
IIUC, you can simply avoid calling NTPClient::update() from loop().
So, if I using timeClient.forceUpdate() not in the loop, but occasionally by calling some function, may I add in this function
timeClient.begin();
timeClient.forceUpdate();
timeClient.end();
or it's not necessary?
If millis rolls over before you call NTPClient::update() again do you lose track of the time?
you do have to worry about millis() rolling over.
it makes total sense to have an update() routine keep track of the time but NOT poll the ntp servers.
those two things really are separate.
a 'feed me, loop()' that you run inside your loop is a common thing and that should be done. but I dont like having ntp server hits happen just because I want my local timeclock to keep time. I really do want to manage the ntp hits manually.