@@ -34,6 +34,43 @@ This is a **Mqtt broker** developed for embedded devices, in **c++** programming
34
34
* main: Here is the last version of the project.
35
35
* main-QOS0: Functional and tested version that only implements QOS 0.
36
36
37
+ ## Can't see broker activity outputs on Serial monitor?
38
+
39
+ * Since 6e0b3b8 commit, this library use esp32-hal-log.h to show broker activity outputs like new clients id, topis to subscribe, to pusblish etc...
40
+
41
+ * To see this activity you need to set a ** core debug level** , this level say to esp32-hal-log.h what outputs to show:
42
+ * don't show logs: 0 (ARDUHAL_LOG_LEVEL_NONE)
43
+ * Error logs: 1 (ARDUHAL_LOG_LEVEL_ERROR)
44
+ * Warnings logs: 2 (ARDUHAL_LOG_LEVEL_WARM)
45
+ * Info logs: 3 (ARDUHAL_LOG_LEVEL_INFO)
46
+ * Debug logs: 4 (ARDUHAL_LOG_LEVEL_DEBUG)
47
+ * Verbose logs: 5 (ARDUHAL_LOG_LEVEL_VERBOSE)
48
+
49
+ * Arduino framework only allows to set this level in compile time, for some reason if you try to set this at runtime it doesn't work.
50
+
51
+ * To set core debug level:
52
+ * ** Arduino IDE** : set using, tools/Core Debug Level
53
+ * ** VSCODE arduino extension** : set using, arduino.json and adding ":
54
+
55
+ ~~~ c++
56
+ " buildPreferences" : [
57
+ [" build.extra_flags" , " -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO" ]
58
+ ]
59
+ ~~~
60
+
61
+ * ** Platformio** : set using
62
+
63
+ ~~~ yaml
64
+ [env:esp32]
65
+ platform = espressif32
66
+ framework = arduino
67
+ board = esp32dev
68
+ lib_deps =
69
+ alexcajas/WrapperFreeRTOS @ ^1.0.1
70
+ alexcajas/EmbeddedMqttBroker @ 1.0.4-qos0
71
+ build_flags = -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
72
+ ~~~
73
+
37
74
---
38
75
39
76
## Table of contents
0 commit comments