NTPClient
NTPClient copied to clipboard
isTimeSet() does not reset when update fail
Hello
When I check if the Arduino success to update the date, if I disconnect the cable, isTimeSet()
does not return false
void loop(){
timeClient.update();
if (timeClient.isTimeSet())
{
Serial.println("Updated");
}
else
{
Serial.println("Not updated");
}
}
The same occur if I do this
void loop(){
if (timeClient.update())
{
Serial.println("Updated");
}
else
{
Serial.println("Not updated");
}
}
Or use forceUpdate()