Skip to content

Commit

Permalink
Release 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
h2zero committed Jun 18, 2024
1 parent 988d271 commit 6e1ad0f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Changelog

All notable changes to this project will be documented in this file.
## [unreleased]

## [1.4.2] 2024-06-17

### Fixed
- `CONFIG_BT_NIMBLE_NVS_PERSIST` value not being used to enable/disable persistance.
Expand Down
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PROJECT_NAME = NimBLE-Arduino
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 1.4.1
PROJECT_NUMBER = 1.4.2

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
27 changes: 27 additions & 0 deletions docs/Usage_tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,33 @@
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.

Here is an example of how to do this:
```
void BLETask(void* param) {
for(;;) {
..BLE STUFF GOES HERE..
delay(1); // always delay in the loop to allow other tasks to run
}
vTaskDelete(NULL); // should never get here
}
void setup() {
...YOUR INIT CODE...
xTaskCreatePinnedToCore(
BLETask, /* Function to implement the task */
"BLETask", /* Name of the task */
4096, /* Stack size in bytes */
NULL, /* Task input parameter */
2, /* Priority of the task (set higher than loop) */
nullptr, /* Task handle. */
CONFIG_BT_NIMBLE_PINNED_TO_CORE); /* Core where main nimble task runs */
}
void loop() {
delay(1);
}
```
<br/>

## Do not delete client instances unless necessary or unused
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Call `NimBLEDevice::init` in `setup`.
* Open platformio.ini, a project configuration file located in the root of PlatformIO project.
* Add the following line to the lib_deps option of [env:] section:
```
h2zero/NimBLE-Arduino@^1.4.0
h2zero/NimBLE-Arduino@^1.4.2
```
* Build a project, PlatformIO will automatically install dependencies.
<br/>
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=NimBLE-Arduino
version=1.4.1
version=1.4.2
author=h2zero
maintainer=h2zero <powellperalta@gmail.com>
sentence=Bluetooth low energy (BLE) library for arduino-esp32 based on NimBLE.
Expand Down

0 comments on commit 6e1ad0f

Please sign in to comment.