Skip to content

Commit edf1b9e

Browse files
vlucenth2zero
authored andcommitted
Update README.md
added debugging section with recommended settings
1 parent bf11096 commit edf1b9e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ Change the settings in the `src/nimconfig.h` file to customize NimBLE to your pr
5656
such as increasing max connections, default is 3 for the esp32.
5757
<br/>
5858

59+
# Debugging
60+
All NimBLE debug configuration options are located in `src/nimconfig.h`.
61+
Uncomment and modify the desired settings before compiling.
62+
63+
## Recommended debug configuration
64+
For connection and protocol debugging:
65+
```cpp
66+
#define MYNEWT_VAL_BLE_HS_LOG_LVL 1
67+
#define MYNEWT_VAL_NIMBLE_CPP_LOG_LEVEL 3
68+
#define MYNEWT_VAL_NIMBLE_CPP_ENABLE_RETURN_CODE_TEXT
69+
#define MYNEWT_VAL_NIMBLE_CPP_ENABLE_GAP_EVENT_CODE_TEXT
70+
```
71+
5972
# Development Status
6073
This Library is tracking the esp-nimble repo, nimble-1.5.0-idf branch, currently [@e3cbdc0.](https://github.com/espressif/esp-nimble)
6174
<br/>

0 commit comments

Comments
 (0)