disabled network ready waiting for prevent delayed
return from the main webguiapp process
This commit is contained in:
parent
d1c3595ea9
commit
9fca7f296f
|
|
@ -155,24 +155,7 @@ esp_err_t WebGuiAppInit(void)
|
||||||
|
|
||||||
/*Start services depends on client connection*/
|
/*Start services depends on client connection*/
|
||||||
#if CONFIG_WEBGUIAPP_GPRS_ENABLE || CONFIG_WEBGUIAPP_ETHERNET_ENABLE || CONFIG_WEBGUIAPP_WIFI_ENABLE
|
#if CONFIG_WEBGUIAPP_GPRS_ENABLE || CONFIG_WEBGUIAPP_ETHERNET_ENABLE || CONFIG_WEBGUIAPP_WIFI_ENABLE
|
||||||
//start all services no depends on network ready
|
|
||||||
ESP_ERROR_CHECK(start_file_server());
|
ESP_ERROR_CHECK(start_file_server());
|
||||||
//Wait for network ready
|
|
||||||
while (!(
|
|
||||||
|
|
||||||
#ifdef CONFIG_WEBGUIAPP_GPRS_ENABLE
|
|
||||||
isPPPConnected() ||
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_WEBGUIAPP_WIFI_ENABLE
|
|
||||||
isWIFIConnected() ||
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_WEBGUIAPP_ETHERNET_ENABLE
|
|
||||||
isETHConnected() ||
|
|
||||||
#endif
|
|
||||||
++NetworkStartTimeout >= NETWORK_START_TIMEOUT))
|
|
||||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
|
||||||
|
|
||||||
//Network ready or network not available now, but maybe restore later
|
|
||||||
StartTimeGet();
|
StartTimeGet();
|
||||||
//mDNSServiceStart();
|
//mDNSServiceStart();
|
||||||
|
|
||||||
|
|
@ -184,7 +167,6 @@ esp_err_t WebGuiAppInit(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user