mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
feat(lwip): update lwip component according to IDF
commit ID: 79a5b0b5
This commit is contained in:
@ -87,7 +87,7 @@ typedef struct {
|
||||
.count = 5, \
|
||||
.interval_ms = 1000, \
|
||||
.timeout_ms = 1000, \
|
||||
.data_size = 56, \
|
||||
.data_size = 64, \
|
||||
.tos = 0, \
|
||||
.target_addr = PING_TARGET_ADDR, \
|
||||
.task_stack_size = 2048, \
|
||||
|
@ -120,6 +120,33 @@ void sntp_set_sync_status(sntp_sync_status_t sync_status);
|
||||
*/
|
||||
void sntp_set_time_sync_notification_cb(sntp_sync_time_cb_t callback);
|
||||
|
||||
/**
|
||||
* @brief Set the sync interval of SNTP operation
|
||||
*
|
||||
* Note: SNTPv4 RFC 4330 enforces a minimum sync interval of 15 seconds.
|
||||
* This sync interval will be used in the next attempt update time throught SNTP.
|
||||
* To apply the new sync interval call the sntp_restart() function,
|
||||
* otherwise, it will be applied after the last interval expired.
|
||||
*
|
||||
* @param interval_ms The sync interval in ms. It cannot be lower than 15 seconds, otherwise 15 seconds will be set.
|
||||
*/
|
||||
void sntp_set_sync_interval(uint32_t interval_ms);
|
||||
|
||||
/**
|
||||
* @brief Get the sync interval of SNTP operation
|
||||
*
|
||||
* @return the sync interval
|
||||
*/
|
||||
uint32_t sntp_get_sync_interval(void);
|
||||
|
||||
/**
|
||||
* @brief Restart SNTP
|
||||
*
|
||||
* @return True - Restart
|
||||
* False - SNTP was not initialized yet
|
||||
*/
|
||||
bool sntp_restart(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user