From a39c4876177ef16af5c6b012d93f06b79065ffc9 Mon Sep 17 00:00:00 2001 From: bogdan Date: Sat, 27 May 2023 19:54:50 +0200 Subject: [PATCH] added MQTT log level --- Kconfig | 7 ++++++- extlibs/libespfs | 2 +- src/MQTT.c | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Kconfig b/Kconfig index 2c3f773..fb5ecb5 100644 --- a/Kconfig +++ b/Kconfig @@ -774,7 +774,12 @@ menu "WebGUIApp" config WEBGUIAPP_MQTT_PASSWORD string "MQTT user password" - default "password" + default "password" + + config WEBGUIAPP_MQTT_DEBUG_LEVEL + int "MQTT debug log level" + range 0 5 + default 1 endif endmenu diff --git a/extlibs/libespfs b/extlibs/libespfs index 03ff681..a646e3e 160000 --- a/extlibs/libespfs +++ b/extlibs/libespfs @@ -1 +1 @@ -Subproject commit 03ff681a61cb03a43c6f008601a6e6090e9df2bd +Subproject commit a646e3ee0594ec2301e9b3fe6373ea274eb39e39 diff --git a/src/MQTT.c b/src/MQTT.c index 47a1b51..fa2d35a 100644 --- a/src/MQTT.c +++ b/src/MQTT.c @@ -25,7 +25,7 @@ #include "MQTT.h" #include "UserCallbacks.h" -#define MQTT_DEBUG_MODE 1 +#define MQTT_DEBUG_MODE CONFIG_WEBGUIAPP_MQTT_DEBUG_LEVEL #define MQTT_MESSAGE_BUFER_LENTH 5 //size of mqtt queue #define MQTT_RECONNECT_CHANGE_ADAPTER 3