Skip to content

Commit 6e1ad0f

Browse files
committed
Release 1.4.2
1 parent 988d271 commit 6e1ad0f

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

33
All notable changes to this project will be documented in this file.
4-
## [unreleased]
4+
5+
## [1.4.2] 2024-06-17
56

67
### Fixed
78
- `CONFIG_BT_NIMBLE_NVS_PERSIST` value not being used to enable/disable persistance.

docs/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = NimBLE-Arduino
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = 1.4.1
51+
PROJECT_NUMBER = 1.4.2
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

docs/Usage_tips.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@
55
When commands are sent to the stack from a different core they can experience delays in execution.
66
This library detects this and invokes the esp32 IPC to reroute these commands through the correct core but this also increases overhead.
77
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.
8+
9+
Here is an example of how to do this:
10+
```
11+
void BLETask(void* param) {
12+
for(;;) {
13+
..BLE STUFF GOES HERE..
14+
delay(1); // always delay in the loop to allow other tasks to run
15+
}
16+
vTaskDelete(NULL); // should never get here
17+
}
18+
19+
void setup() {
20+
...YOUR INIT CODE...
21+
xTaskCreatePinnedToCore(
22+
BLETask, /* Function to implement the task */
23+
"BLETask", /* Name of the task */
24+
4096, /* Stack size in bytes */
25+
NULL, /* Task input parameter */
26+
2, /* Priority of the task (set higher than loop) */
27+
nullptr, /* Task handle. */
28+
CONFIG_BT_NIMBLE_PINNED_TO_CORE); /* Core where main nimble task runs */
29+
}
30+
31+
void loop() {
32+
delay(1);
33+
}
34+
```
835
<br/>
936

1037
## Do not delete client instances unless necessary or unused

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Call `NimBLEDevice::init` in `setup`.
2424
* Open platformio.ini, a project configuration file located in the root of PlatformIO project.
2525
* Add the following line to the lib_deps option of [env:] section:
2626
```
27-
h2zero/NimBLE-Arduino@^1.4.0
27+
h2zero/NimBLE-Arduino@^1.4.2
2828
```
2929
* Build a project, PlatformIO will automatically install dependencies.
3030
<br/>

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=NimBLE-Arduino
2-
version=1.4.1
2+
version=1.4.2
33
author=h2zero
44
maintainer=h2zero <powellperalta@gmail.com>
55
sentence=Bluetooth low energy (BLE) library for arduino-esp32 based on NimBLE.

0 commit comments

Comments
 (0)