From 491d0d260db55e0f82a971719650ccce4d962d89 Mon Sep 17 00:00:00 2001 From: Philippe G Date: Wed, 5 Jan 2022 19:38:35 -0800 Subject: [PATCH] set timeout for ethernet/dhcp to 30s --- components/wifi-manager/network_manager_handlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/wifi-manager/network_manager_handlers.c b/components/wifi-manager/network_manager_handlers.c index 508fd56f..b5af5d00 100644 --- a/components/wifi-manager/network_manager_handlers.c +++ b/components/wifi-manager/network_manager_handlers.c @@ -237,13 +237,13 @@ static state_machine_result_t NETWORK_INSTANTIATED_STATE_handler(state_machine_t ESP_LOGD(TAG, "sta_polling_min_ms set to %d", nm->sta_polling_min_ms); FREE_AND_NULL(valuestr); } - valuestr=config_alloc_get_default(NVS_TYPE_STR,"ethtmout","8",0); + valuestr=config_alloc_get_default(NVS_TYPE_STR,"ethtmout","30",0); if (valuestr) { nm->eth_link_down_reboot_ms = atoi(valuestr)*1000; ESP_LOGD(TAG, "ethtmout set to %d", nm->eth_link_down_reboot_ms); FREE_AND_NULL(valuestr); } - valuestr=config_alloc_get_default(NVS_TYPE_STR,"dhcp_tmout","8",0); + valuestr=config_alloc_get_default(NVS_TYPE_STR,"dhcp_tmout","30",0); if(valuestr){ nm->dhcp_timeout = atoi(valuestr)*1000; ESP_LOGD(TAG, "dhcp_timeout set to %d", nm->dhcp_timeout);