Skip to content

Commit 1f6d856

Browse files
committed
v1.0.4-QOS0: Finished how to set core debug level in README.txt
1 parent 9aaa1b4 commit 1f6d856

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

DevelopNotes.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
### doing
66

7-
87
### done
98

109
#### 13/2/2022
@@ -17,7 +16,7 @@
1716
~~~c++
1817
"buildPreferences": [
1918
["build.extra_flags", "-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE"]
20-
]"
19+
]
2120
~~~
2221

2322
* Platformio: set using:

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,43 @@ This is a **Mqtt broker** developed for embedded devices, in **c++** programming
3434
* main: Here is the last version of the project.
3535
* main-QOS0: Functional and tested version that only implements QOS 0.
3636

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+
3774
---
3875

3976
## Table of contents

0 commit comments

Comments
 (0)