Skip to content

Commit 12d90bd

Browse files
committed
LWIP: support SNTP over DHCP
- increase default number of NTP servers up to 3 (match with Arduino esp8266) - activate SNTP over DHCP requests (match with Arduino esp8266) addressing issue espressif/arduino-esp32#4964 provided via espressif/esp-idf#7336
1 parent 9f62f96 commit 12d90bd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: sdkconfig.esp32

+2-2
Original file line numberDiff line numberDiff line change
@@ -1112,8 +1112,8 @@ CONFIG_LWIP_MAX_RAW_PCBS=16
11121112
#
11131113
# SNTP
11141114
#
1115-
CONFIG_LWIP_SNTP_MAX_SERVERS=1
1116-
# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set
1115+
CONFIG_LWIP_SNTP_MAX_SERVERS=3
1116+
CONFIG_LWIP_DHCP_GET_NTP_SRV=y
11171117
CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000
11181118
# end of SNTP
11191119

Diff for: sdkconfig.esp32c3

+2-2
Original file line numberDiff line numberDiff line change
@@ -1127,8 +1127,8 @@ CONFIG_LWIP_MAX_RAW_PCBS=16
11271127
#
11281128
# SNTP
11291129
#
1130-
CONFIG_LWIP_SNTP_MAX_SERVERS=1
1131-
# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set
1130+
CONFIG_LWIP_SNTP_MAX_SERVERS=3
1131+
CONFIG_LWIP_DHCP_GET_NTP_SRV=y
11321132
CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000
11331133
# end of SNTP
11341134

Diff for: sdkconfig.esp32s2

+2-2
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,8 @@ CONFIG_LWIP_MAX_RAW_PCBS=16
962962
#
963963
# SNTP
964964
#
965-
CONFIG_LWIP_SNTP_MAX_SERVERS=1
966-
# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set
965+
CONFIG_LWIP_SNTP_MAX_SERVERS=3
966+
CONFIG_LWIP_DHCP_GET_NTP_SRV=y
967967
CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000
968968
# end of SNTP
969969

0 commit comments

Comments
 (0)