Open KianoJ opened 1 year ago
Hello
When I check if the Arduino success to update the date, if I disconnect the cable, isTimeSet() does not return false
isTimeSet()
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()
forceUpdate()
Hello
When I check if the Arduino success to update the date, if I disconnect the cable,
isTimeSet()
does not return false