Hello
Is it in anyway possible to reset the internal RTC or write to RTC's registre?
I need to do this to make shore I get the newest when calling localtime_r after calling sntp_init.
reset the on chip RTC?
-
- Posts: 1707
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: reset the on chip RTC?
You can set esp_sntp_config::sync_cb to be notified when a time from the network becomes available. Prior to the SNTP sync finishing, fiddling with the RTC is of no use. And if you use SNTP_SYNC_MODE_IMMED, fiddling with the RTC after the sync is of no use either.
Who is online
Users browsing this forum: ESP_adokitkat, Michael_mhr and 116 guests