Skip to content

Commit 9819b81

Browse files
authored
LWIP: support SNTP over DHCP (#51)
- 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 3b85a7d commit 9819b81

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
@@ -1114,8 +1114,8 @@ CONFIG_LWIP_MAX_RAW_PCBS=16
11141114
#
11151115
# SNTP
11161116
#
1117-
CONFIG_LWIP_SNTP_MAX_SERVERS=1
1118-
# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set
1117+
CONFIG_LWIP_SNTP_MAX_SERVERS=3
1118+
CONFIG_LWIP_DHCP_GET_NTP_SRV=y
11191119
CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000
11201120
# end of SNTP
11211121

Diff for: sdkconfig.esp32c3

+2-2
Original file line numberDiff line numberDiff line change
@@ -1131,8 +1131,8 @@ CONFIG_LWIP_MAX_RAW_PCBS=16
11311131
#
11321132
# SNTP
11331133
#
1134-
CONFIG_LWIP_SNTP_MAX_SERVERS=1
1135-
# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set
1134+
CONFIG_LWIP_SNTP_MAX_SERVERS=3
1135+
CONFIG_LWIP_DHCP_GET_NTP_SRV=y
11361136
CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000
11371137
# end of SNTP
11381138

Diff for: sdkconfig.esp32s2

+2-2
Original file line numberDiff line numberDiff line change
@@ -964,8 +964,8 @@ CONFIG_LWIP_MAX_RAW_PCBS=16
964964
#
965965
# SNTP
966966
#
967-
CONFIG_LWIP_SNTP_MAX_SERVERS=1
968-
# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set
967+
CONFIG_LWIP_SNTP_MAX_SERVERS=3
968+
CONFIG_LWIP_DHCP_GET_NTP_SRV=y
969969
CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000
970970
# end of SNTP
971971

0 commit comments

Comments
 (0)