Browse Source

set timeout for ethernet/dhcp to 30s

Philippe G 3 years ago
parent
commit
491d0d260d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/wifi-manager/network_manager_handlers.c

+ 2 - 2
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);