mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 04:57:38 +00:00
tcp_udp: remove some unnecessary functions.
This commit is contained in:
@@ -19,6 +19,11 @@ step3:
|
||||
you can see the info in com port output.
|
||||
*/
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "esp_log.h"
|
||||
#include "esp_err.h"
|
||||
|
||||
#include "udp_perf.h"
|
||||
|
||||
int connectedflag = 0;
|
||||
@@ -50,7 +55,7 @@ static void udp_conn(void *pvParameters)
|
||||
ESP_LOGI(TAG, "creat_udp_client.");
|
||||
socret = creat_udp_client();
|
||||
#endif
|
||||
if(-1 == socret) {
|
||||
if(ESP_FAIL == socret) {
|
||||
ESP_LOGI(TAG, "creat udp socket error,stop.");
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
@@ -80,7 +85,6 @@ static void udp_conn(void *pvParameters)
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
nvs_flash_init();
|
||||
#if ESP_WIFI_MODE_AP
|
||||
ESP_LOGI(TAG, "ESP_WIFI_MODE_AP\n");
|
||||
wifi_init_softap();
|
||||
|
Reference in New Issue
Block a user