|
Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include "sntp_helper.h"#include "ca-ot-util/cascoda_dns.h"#include "cascoda-bm/cascoda_interface.h"#include "cascoda-util/cascoda_tasklet.h"#include "openthread/dns.h"#include "openthread/sntp.h"#include "openthread/thread.h"#include "platform.h"
Macros | |
| #define | NTP_SERVER "pool.ntp.org" |
Enumerations | |
| enum | time_constants { REQUEST_TIMEOUT_MS = 30 * 1000 , REFRESH_MS = CASCODA_SNTP_INTERVAL * 60 * 1000 } |
Functions | |
| void | do_dns_query () |
| void | dns_response_handler (ca_error aError, const otIp6Address *aAddress, dns_index aIndex, void *aContext) |
| void | SNTP_Init () |
| Initialise the SNTP library. More... | |
| ca_error | SNTP_Update () |
| Start the process for updating the RTC using an SNTP request. More... | |
| enum sntp_query_state | SNTP_GetState () |
| Get the status of the library, which indicates whether the RTC has been updated using SNTP. More... | |
| #define NTP_SERVER "pool.ntp.org" |
| enum time_constants |
| void dns_response_handler | ( | ca_error | aError, |
| const otIp6Address * | aAddress, | ||
| dns_index | aIndex, | ||
| void * | aContext | ||
| ) |
| void do_dns_query | ( | ) |