Global error declarations for use across the Cascoda SDK.
ca_error
Cascoda error type.
Definition: ca821x_error.h:51
void SNTP_Init()
Initialise the SNTP library.
Definition: sntp_helper.c:65
ca_error SNTP_Update()
Start the process for updating the RTC using an SNTP request.
Definition: sntp_helper.c:70
enum sntp_query_state SNTP_GetState()
Get the status of the library, which indicates whether the RTC has been updated using SNTP.
Definition: sntp_helper.c:186
sntp_query_state
Definition: sntp_helper.h:50
@ WAITING_FOR_SNTP
Definition: sntp_helper.h:53
@ NO_TIME
Definition: sntp_helper.h:51
@ RETRYING
Definition: sntp_helper.h:55
@ WAITING_FOR_DNS
Definition: sntp_helper.h:52
@ HAVE_TIME
Definition: sntp_helper.h:54