Embedded Wireless Framework
Data Structures | Typedefs | Functions
Adapter NTP API

NTP functions. More...

Data Structures

struct  _ewf_adapter_api_modem_ntp
 

Typedefs

typedef struct _ewf_adapter_api_modem_ntp ewf_adapter_api_modem_ntp
 

Functions

ewf_result ewf_adapter_ntp_network_time_synchronize (ewf_adapter *adapter_ptr, const char *server_str, uint16_t port, uint8_t autoset, ewf_adapter_modem_time *time_info_ptr)
 Synchronize time with NTP. More...
 

Detailed Description

NTP functions.

Function Documentation

◆ ewf_adapter_ntp_network_time_synchronize()

ewf_result ewf_adapter_ntp_network_time_synchronize ( ewf_adapter adapter_ptr,
const char *  server_str,
uint16_t  port,
uint8_t  autoset,
ewf_adapter_modem_time time_info_ptr 
)

Synchronize time with NTP.

Parameters
[in]adapter_ptrA pointer to the adapter structure
[in]server_strString indicating NTP server URL
[in]portNTP server port
[in]autosetInteger, wheter to automatically set the synchronized time to local time
[out]time_info_ptrThe time synchronized from NTP server if available in output URC
Note
Not all modems support NTP synchronization, refer modem user manual for feature suport informations
Returns
ewf_result status code