mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2026-04-18 15:38:39 +02:00
Usage_tips.md - Note that the library is threadsafe.
This commit is contained in:
committed by
Ryan Powell
parent
f622cdff0c
commit
133c1a5da4
@@ -1,11 +1,8 @@
|
||||
# Usage Tips
|
||||
|
||||
## Put BLE functions in a task running on the NimBLE stack core
|
||||
## Threadsafety
|
||||
|
||||
When commands are sent to the stack from a different core they can experience delays in execution.
|
||||
This library detects this and invokes the esp32 IPC to reroute these commands through the correct core but this also increases overhead.
|
||||
Therefore it is highly recommended to create tasks for BLE to run on the same core, the macro `CONFIG_BT_NIMBLE_PINNED_TO_CORE` can be used to set the core.
|
||||
<br/>
|
||||
This library is threadsafe. Attribues can be manipulated freely.
|
||||
|
||||
## Do not delete client instances unless necessary or unused
|
||||
|
||||
|
||||
Reference in New Issue
Block a user