added wifi restart in debug
This commit is contained in:
parent
cce9b9be61
commit
1e9bbccd66
|
|
@ -56,6 +56,7 @@ void StartTimeGet(void);
|
|||
|
||||
void WiFiAPStart(void);
|
||||
void WiFiSTAStart(void);
|
||||
void WiFiStop(void);
|
||||
void WiFiScan(void);
|
||||
void EthStart(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -482,14 +482,12 @@ static HTTP_IO_RESULT HTTPPostSystemSettings(httpd_req_t *req, char *PostData)
|
|||
{
|
||||
if (!strcmp(tmp, (const char*) "1"))
|
||||
{
|
||||
WiFiScan();
|
||||
WiFiAPStart();
|
||||
return HTTP_IO_DONE_NOREFRESH;
|
||||
}
|
||||
else if (!strcmp(tmp, (const char*) "2"))
|
||||
{
|
||||
#if CONFIG_WEBGUIAPP_GPRS_ENABLE
|
||||
PPPModemGetRSSI();
|
||||
#endif
|
||||
WiFiStop();
|
||||
return HTTP_IO_DONE_NOREFRESH;
|
||||
}
|
||||
else if (!strcmp(tmp, (const char*) "3"))
|
||||
|
|
|
|||
|
|
@ -497,6 +497,12 @@ void WiFiSTAStart(void)
|
|||
xTaskCreate(wifi_init_sta, "InitStationTask", 1024 * 4, (void*) 0, 3, NULL);
|
||||
}
|
||||
|
||||
void WiFiStop(void)
|
||||
{
|
||||
esp_wifi_scan_stop();
|
||||
esp_wifi_deinit();
|
||||
}
|
||||
|
||||
static void wifi_scan(void *arg)
|
||||
{
|
||||
uint16_t number = DEFAULT_SCAN_LIST_SIZE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user