fixed ESP Log stuff

main
Jonas Arnold 4 years ago
parent c091e04bd3
commit 8604f77d90
  1. 2
      ADIS_ESP32_Eclipse/main/led.c
  2. 2
      ADIS_ESP32_Eclipse/main/timer.c
  3. 2
      ADIS_ESP32_Eclipse/main/udp_client.c
  4. 5
      ADIS_ESP32_Eclipse/main/wifi.c

@ -16,7 +16,7 @@
#include "McuLED.h"
#include "McuLog.h"
#define TAG "Blinky"
#define TAG "Blinky" /* tag for logging with ESP_LOG */
static McuLED_Handle_t ledHandle;

@ -11,7 +11,7 @@
#include "esp_log.h"
#include "McuTimeDate.h"
static const char *TAG = "Timer";
#define TAG "Timer" /* tag for logging with ESP_LOG */
static TimerHandle_t timer;

@ -40,7 +40,7 @@
static uint16_t udp_client_destination_port = PORT;
static unsigned char udp_client_destination_host[24] = HOST_IP_ADDR;
static const char *TAG = "udp_client";
#define TAG "udp_client" /* tag for logging with ESP_LOG */
static TaskHandle_t taskHandle = NULL; /* udp client task handle */
#if 0

@ -50,6 +50,7 @@
#define EAP_PEAP 1 /* WPA2 Enterprise with password and no certificate */
#define EAP_TTLS 2 /* TLS method */
#define TAG "WiFi" /* tag for logging with ESP_LOG */
#include "pwd.h" /* local file with login information */
@ -253,7 +254,7 @@ static void WiFiTask(void *pv) {
#endif
if (state == WIFI_STATE_INIT && isConnected) { /* first connection */
state = WIFI_STATE_CONNECTED;
//ESP_LOGI(TAG, "WiFi is connected.");
ESP_LOGI(TAG, "WiFi is connected.");
if (isConnected) {
APP_WiFi_PrintIP();
}
@ -270,7 +271,7 @@ static void WiFiTask(void *pv) {
McuLog_error("failed getting SNTP time.");
}
#endif
#if 0
#if 1
} else if (isConnected) {
ESP_LOGI(TAG, "still connected.");
APP_WiFi_PrintIP();

Loading…
Cancel
Save