diff --git a/README.md b/README.md index bacf985d..ea6b8976 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ NimBLE CPP library for use with ESP32 that attempts to maintain compatibility with the [nkolban cpp_utils BLE API](https://github.com/nkolban/esp32-snippets/tree/master/cpp_utils). +The library is threadsafe, characteristics can be set from any thread. + **An Arduino version of this library, including NimBLE, can be [found here.](https://github.com/h2zero/NimBLE-Arduino)** This library **significantly** reduces resource usage and improves performance for ESP32 BLE applications as compared diff --git a/docs/Usage_tips.md b/docs/Usage_tips.md index a5946285..d2c7b56c 100644 --- a/docs/Usage_tips.md +++ b/docs/Usage_tips.md @@ -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. -
+This library is threadsafe. Attribues can be manipulated freely. ## Do not delete client instances unless necessary or unused