NTPClient icon indicating copy to clipboard operation
NTPClient copied to clipboard

Question: Is there a way to disable auto-update?

Open Hansvank opened this issue 8 years ago • 4 comments
trafficstars

Is there a way to set the update to manual? Or change it to daily? Thank you very much in advance!

Hansvank avatar Oct 16 '17 15:10 Hansvank

IIUC, you can simply avoid calling NTPClient::update() from loop().

NdK73 avatar Dec 28 '17 17:12 NdK73

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?

Gomezzzzz avatar Sep 20 '18 21:09 Gomezzzzz

If millis rolls over before you call NTPClient::update() again do you lose track of the time?

path9263 avatar Mar 07 '20 19:03 path9263

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.

sercona avatar Jul 02 '21 02:07 sercona