sntp/lwip: Add some modes for time synchronization

Closes: IDF-236
Closes: https://github.com/espressif/esp-idf/pull/1668
Closes: https://github.com/espressif/esp-idf/pull/4103
This commit is contained in:
Konstantin Kondrashov
2019-03-02 02:12:11 +08:00
committed by bot
parent 626684578a
commit 07a3eca372
10 changed files with 350 additions and 10 deletions

View File

@@ -14,4 +14,18 @@ menu "Example Configuration"
Can be left blank if the network has no security set.
choice SNTP_TIME_SYNC_METHOD
prompt "Time synchronization method"
default SNTP_TIME_SYNC_METHOD_IMMED
help
Time synchronization method.
config SNTP_TIME_SYNC_METHOD_IMMED
bool "update time immediately when received"
config SNTP_TIME_SYNC_METHOD_SMOOTH
bool "update time with smooth method (adjtime)"
config SNTP_TIME_SYNC_METHOD_CUSTOM
bool "custom implementation"
endchoice
endmenu