13 Marzo 2020 alle 12:55
#7729
Partecipante
Non ho provato mai la libreria NTP, ma suppongo ci sia più di un server da poter consultare. Magari si può modificare la lista,
Dagli esempi di NTPClient
// You can specify the time server pool and the offset (in seconds, can be
// changed later with setTimeOffset() ). Additionaly you can specify the
// update interval (in milliseconds, can be changed using setUpdateInterval() ).
NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000);
Come si vede è stato scelto un server generico. Si può anche cercare sul sito ntp.org quale server sia più favorevole. Bisogna anche considerare che a volte la distanza non è il fattore migliore di un server.
Altresì, la procedura potrebbe anche fare qualche verifica se ha fallito a ritentare con una frequenza diversa o con un altro server.