Skip to content

SNTP using fractional seconds? #2062

@tomtobback

Description

@tomtobback

Hi, i am trying to synchronise multiple ESP32s using the native time functions as in the ESP32>Time>SimpleTime example.
However, the transition to the next second does not occur at the same instant on my different ESP32s (up to several 100 of milliseconds out of sync). The only explanation i can think of is that the underlying SNTP functions do not take the fractional seconds of the NTP UDP packet into account. I have been trying to find the source code, with no success. Can anybody help me look into this.
Or any suggestions how to synchronise devices on the same network to millisecond precision.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions