tcp_udp: remove some unnecessary functions.

This commit is contained in:
chenyudong
2017-03-31 16:34:12 +08:00
parent e261e16981
commit 68bf54607a
8 changed files with 66 additions and 76 deletions

View File

@@ -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();