while(1){ vTaskDelay(4000/portTICK_PERIOD_MS); ESP_ERROR_CHECK(esp_wifi_disconnect() ); vTaskDelay(1000/portTICK_PERIOD_MS); ESP_LOGI(TAG, "wifi_init_sta stop sta"); ESP_ERROR_CHECK(esp_wifi_stop() ); vTaskDelay(1000/portTICK_PERIOD_MS); ...
ESP_ERROR_CHECK(ret); app_wifi(); char * p=strstr(send_data1,a); if (p) { vTaskDelay(4000/portTICK_PERIOD_MS); printf("wifi cred found"); //esp_wifi_scan_stop(); esp_wifi_stop(); esp_wifi_deinit(); app(); } else{ vTaskDelay(4000/portTICK_PERIOD_MS); printf("wifi c...