Skip to content

isTimeSet() does not reset when update fail #175

Open
@MGMehdi

Description

@MGMehdi

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");
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions