What is the canonical way to set time in the pseudo-RTC
Posted: Thu Dec 26, 2019 8:29 am
Hey,
So I want to synchronise time via an MQTT message - what's the right system call for setting the current time in seconds? I've looked at the sntp_* functions, but it seems those aren't exposed to be used, and they are low level - there's a higher level interface which binds to a number of SNTP servers and proceeds to set time through there.
What if I want to set the time from another source? How would I go about that?
So I want to synchronise time via an MQTT message - what's the right system call for setting the current time in seconds? I've looked at the sntp_* functions, but it seems those aren't exposed to be used, and they are low level - there's a higher level interface which binds to a number of SNTP servers and proceeds to set time through there.
What if I want to set the time from another source? How would I go about that?