From 91fba02b70c0df50a8e4c001477b87e521031173 Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 1 Nov 2021 15:18:23 +0100 Subject: [PATCH 1/9] Change sntp default update interval to 3 hours. ## Summary Change sntp default update interval from 1 to 6 hours. ## Impact This PR aims at reducing the amount of requests sent to the (free as-in-beer and community run) ntp time servers. The amount of requests for the ntp project should be a a lot less (per esp32) than with the current settings. ## Rationale Just from my home network with 5 esp32 controllers there are more than 100 ntp requests per day with the 1 hour update interval. The [ntp project](http://www.ntp.org/) is a community run service and open source projects should strive to minimize their impact on this service. --- sdkconfig.esp32 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkconfig.esp32 b/sdkconfig.esp32 index b9a5cea8..6c0ba4bc 100644 --- a/sdkconfig.esp32 +++ b/sdkconfig.esp32 @@ -1114,7 +1114,7 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # CONFIG_LWIP_SNTP_MAX_SERVERS=1 # CONFIG_LWIP_DHCP_GET_NTP_SRV is not set -CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 +CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 * 3 # end of SNTP CONFIG_LWIP_ESP_LWIP_ASSERT=y From 1eea1bfde19933430a5f3d7349bb4f8182a4bddc Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 1 Nov 2021 15:24:09 +0100 Subject: [PATCH 2/9] Update sdkconfig.esp32c3 --- sdkconfig.esp32c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkconfig.esp32c3 b/sdkconfig.esp32c3 index 068b8616..c323b096 100644 --- a/sdkconfig.esp32c3 +++ b/sdkconfig.esp32c3 @@ -1129,7 +1129,7 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # CONFIG_LWIP_SNTP_MAX_SERVERS=1 # CONFIG_LWIP_DHCP_GET_NTP_SRV is not set -CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 +CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 * 3 # end of SNTP CONFIG_LWIP_ESP_LWIP_ASSERT=y From af47c10776efe5c6fef281d921f08562a46ca5a4 Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 1 Nov 2021 15:24:38 +0100 Subject: [PATCH 3/9] Update sdkconfig.esp32s2 --- sdkconfig.esp32s2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkconfig.esp32s2 b/sdkconfig.esp32s2 index 54a64f90..52685f22 100644 --- a/sdkconfig.esp32s2 +++ b/sdkconfig.esp32s2 @@ -964,7 +964,7 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # CONFIG_LWIP_SNTP_MAX_SERVERS=1 # CONFIG_LWIP_DHCP_GET_NTP_SRV is not set -CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 +CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 * 3 # end of SNTP CONFIG_LWIP_ESP_LWIP_ASSERT=y From ad550ab08609144b07f9983fa2db4b568899d428 Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 1 Nov 2021 16:04:01 +0100 Subject: [PATCH 4/9] Update sdkconfig.esp32 --- sdkconfig.esp32 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkconfig.esp32 b/sdkconfig.esp32 index 6c0ba4bc..4e503b9a 100644 --- a/sdkconfig.esp32 +++ b/sdkconfig.esp32 @@ -1114,7 +1114,7 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # CONFIG_LWIP_SNTP_MAX_SERVERS=1 # CONFIG_LWIP_DHCP_GET_NTP_SRV is not set -CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 * 3 +CONFIG_LWIP_SNTP_UPDATE_DELAY=10800000 # end of SNTP CONFIG_LWIP_ESP_LWIP_ASSERT=y From 9de3cd32cdf440f04b5a93540ac0f27ad2645490 Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 1 Nov 2021 16:04:41 +0100 Subject: [PATCH 5/9] Update sdkconfig.esp32c3 --- sdkconfig.esp32c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkconfig.esp32c3 b/sdkconfig.esp32c3 index c323b096..a17eadd1 100644 --- a/sdkconfig.esp32c3 +++ b/sdkconfig.esp32c3 @@ -1129,7 +1129,7 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # CONFIG_LWIP_SNTP_MAX_SERVERS=1 # CONFIG_LWIP_DHCP_GET_NTP_SRV is not set -CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 * 3 +CONFIG_LWIP_SNTP_UPDATE_DELAY=10800000 # end of SNTP CONFIG_LWIP_ESP_LWIP_ASSERT=y From cb32531c6ae3b540668f72f051a2dbacc18c4b8f Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 1 Nov 2021 16:05:02 +0100 Subject: [PATCH 6/9] Update sdkconfig.esp32s2 --- sdkconfig.esp32s2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkconfig.esp32s2 b/sdkconfig.esp32s2 index 52685f22..60319c76 100644 --- a/sdkconfig.esp32s2 +++ b/sdkconfig.esp32s2 @@ -964,7 +964,7 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # CONFIG_LWIP_SNTP_MAX_SERVERS=1 # CONFIG_LWIP_DHCP_GET_NTP_SRV is not set -CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 * 3 +CONFIG_LWIP_SNTP_UPDATE_DELAY=10800000 # end of SNTP CONFIG_LWIP_ESP_LWIP_ASSERT=y From 747eeccd0d14bea94c86dda77c1c556027ef3a8c Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 13 Jun 2022 16:02:24 +0200 Subject: [PATCH 7/9] Update sdkconfig.esp32 --- sdkconfig.esp32 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdkconfig.esp32 b/sdkconfig.esp32 index 666a2535..9d745fd8 100644 --- a/sdkconfig.esp32 +++ b/sdkconfig.esp32 @@ -1114,8 +1114,8 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # # SNTP # -CONFIG_LWIP_SNTP_MAX_SERVERS=1 -# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set +CONFIG_LWIP_SNTP_MAX_SERVERS=3 +CONFIG_LWIP_DHCP_GET_NTP_SRV=y CONFIG_LWIP_SNTP_UPDATE_DELAY=10800000 # end of SNTP From 962f380224097a20742c1d2eedbc3ac70eaba094 Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 13 Jun 2022 16:03:10 +0200 Subject: [PATCH 8/9] Update sdkconfig.esp32c3 --- sdkconfig.esp32c3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdkconfig.esp32c3 b/sdkconfig.esp32c3 index 08339a8d..c9e165a0 100644 --- a/sdkconfig.esp32c3 +++ b/sdkconfig.esp32c3 @@ -1131,8 +1131,8 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # # SNTP # -CONFIG_LWIP_SNTP_MAX_SERVERS=1 -# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set +CONFIG_LWIP_SNTP_MAX_SERVERS=3 +CONFIG_LWIP_DHCP_GET_NTP_SRV=y CONFIG_LWIP_SNTP_UPDATE_DELAY=10800000 # end of SNTP From 3011900afacc7a1ed3daff9df6b0b12a83292f64 Mon Sep 17 00:00:00 2001 From: Cellie Date: Mon, 13 Jun 2022 16:03:54 +0200 Subject: [PATCH 9/9] Update sdkconfig.esp32s2 --- sdkconfig.esp32s2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdkconfig.esp32s2 b/sdkconfig.esp32s2 index 20f155f6..f82fd377 100644 --- a/sdkconfig.esp32s2 +++ b/sdkconfig.esp32s2 @@ -964,8 +964,8 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # # SNTP # -CONFIG_LWIP_SNTP_MAX_SERVERS=1 -# CONFIG_LWIP_DHCP_GET_NTP_SRV is not set +CONFIG_LWIP_SNTP_MAX_SERVERS=3 +CONFIG_LWIP_DHCP_GET_NTP_SRV=y CONFIG_LWIP_SNTP_UPDATE_DELAY=10800000 # end of SNTP pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy