Version 0.4.0. Disable normal logging mqtt.

Thu, 13 Apr 2023 12:08:24 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 13 Apr 2023 12:08:24 +0200
changeset 26
29dc2064e2ce
parent 25
c5a9bde0268f
child 27
53d6ecf5829b

Version 0.4.0. Disable normal logging mqtt.

CMakeLists.txt file | annotate | diff | comparison | revisions
main/iotbalkon.c file | annotate | diff | comparison | revisions
main/task_mqtt.c file | annotate | diff | comparison | revisions
--- a/CMakeLists.txt	Wed Apr 12 16:37:17 2023 +0200
+++ b/CMakeLists.txt	Thu Apr 13 12:08:24 2023 +0200
@@ -4,7 +4,7 @@
 # CMakeLists in this exact order for cmake to work correctly
 cmake_minimum_required(VERSION 3.16)
 
-set(PROJECT_VER "0.0.1")
+set(PROJECT_VER "0.4.0")
 set(PROJECT_NAME "iotbalkon")
 
 set(EXTRA_COMPONENT_DIRS esp-idf-lib/components)
--- a/main/iotbalkon.c	Wed Apr 12 16:37:17 2023 +0200
+++ b/main/iotbalkon.c	Thu Apr 13 12:08:24 2023 +0200
@@ -394,7 +394,6 @@
     xTaskCreate(&task_ina219,   "task_ina219",      2560, NULL, 8, &xTaskINA219);
     xTaskCreate(&task_apds9930, "task_apds9930",    2560, NULL, 8, &xTaskAPDS9930);
     xTaskCreate(&task_out,      "task_out",         2560, NULL, 9, &xTaskOUT);
-    // esp_log_level_set("MQTT_CLIENT", ESP_LOG_ERROR);
     xTaskCreate(&task_mqtt,     "task_mqtt",        4096, NULL, 5, &xTaskMQTT);
     xTaskCreate(&task_wifi,     "task_wifi",        4096, NULL, 3, &xTaskWifi);
 
@@ -409,8 +408,9 @@
 
 
     while (0) {
-//	request_ina219();
-	request_apds9930();
+	request_bmp280();
+	request_ina219();
+//	request_apds9930();
 	vTaskDelay(5000 / portTICK_PERIOD_MS);
     }
 
--- a/main/task_mqtt.c	Wed Apr 12 16:37:17 2023 +0200
+++ b/main/task_mqtt.c	Thu Apr 13 12:08:24 2023 +0200
@@ -360,6 +360,7 @@
     char	*uri = NULL, port[11];
 
     ESP_LOGI(TAG, "Starting MQTT task");
+    esp_log_level_set("MQTT_CLIENT", ESP_LOG_ERROR);
     xSemaphorePcounter = xSemaphoreCreateMutex();
 
     /* event handler and event group for the wifi driver */

mercurial