Networking_TimeSync_EnableDefaultNtp Function
Header: #include <applibs/networking.h>
Instructs the device to use the original OS default NTP server for time sync. This API follows last-write logic, meaning custom NTP server addresses from Networking_TimeSync_EnableAutomaticNtp and Networking_TimeSync_EnableCustomNtp are no longer used after calling this API.
int Networking_TimeSync_EnableDefaultNtp();
Errors
Returns -1 if an error is encountered and sets the errno to the error value.
- EACCES: the calling application doesn't have the TimeSyncConfig capability.
Any other errno may also be specified; such errors aren't deterministic and there is no guarantee that the same behavior is retained through system updates.
Return value
Returns 0 for success, or -1 for failure, in which case errno is set to the error value.
Concepts and samples
Povratne informacije
Pošalјite i prikažite povratne informacije za