You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ All notable changes to this project will be documented in this file.
57
57
-`NimBLEAdvertisedDevice::hasRSSI` removed as redundant, RSSI is always available.
58
58
-`NimBLEAdvertisedDevice::getPayload` now returns `const std::vector<uint8_t>` instead of a pointer to internal memory.
59
59
-`NimBLEAdvertisedDevice` Timestamp removed, if needed then the app should track the time from the callback.
60
+
-`NimBLEAddress` constructor; default value for the `type` parameter removed, caller should know the address type and specify it.
60
61
-`NimBLEAddress::getNative` replaced with `NimBLEAddress::getBase` and now returns a pointer to `const ble_addr_t` instead of a pointer to the address value.
61
62
-`NimBLEAddress::equals` method and `NimBLEAddress::== operator` will now also test if the address types are the same.
62
63
-`NimBLEUUID::getNative` method replaced with `NimBLEUUID::getBase` which returns a read-only pointer to the underlying `ble_uuid_t` struct.
Need help? Have questions or suggestions? Join the [](https://gitter.im/NimBLE-Arduino/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
5
3
<br/>
6
4
7
5
# NimBLE-Arduino
8
6
A fork of the NimBLE stack refactored for compilation in the Arduino IDE.
9
7
10
-
**As of release 1.4.0 Nordic Semiconductor nRF51 and nRF52 series devices are now supported**
8
+
> [!IMPORTANT]
9
+
> Version 2 is now released!
10
+
> Check out the [1.x to 2.x Migration Guide](docs/1.x_to2.x_migration_guide.md) and [Release Notes](https://github.com/h2zero/NimBLE-Arduino/releases/latest)
11
11
12
12
## Supported MCU's
13
13
- Espressif: ESP32, ESP32C3, ESP32S3
14
14
- Nordic: nRF51, nRF52 series (**Requires** using [n-able arduino core](https://github.com/h2zero/n-able-Arduino))
15
15
16
16
**Note for ESP-IDF users: This repo will not compile correctly in ESP-IDF. An ESP-IDF component version of this library can be [found here.](https://github.com/h2zero/esp-nimble-cpp)**
17
17
18
-
This library **significantly** reduces resource usage and improves performance for ESP32 BLE applications as compared with the bluedroid based library. The goal is to maintain, as much as reasonable, compatibility with the original library but refactored to use the NimBLE stack. In addition, this library will be more actively developed and maintained to provide improved capabilities and stability over the original.
18
+
This library **significantly** reduces resource usage and improves performance for ESP32 BLE applications as compared with the bluedroid based library. The goal is to maintain, as much as reasonable, compatibility with the original library but but using the NimBLE stack. In addition, this library will be more actively developed and maintained to provide improved capabilities and stability over the original.
19
19
<br/>
20
20
21
21
For Nordic devices, this library provides access to a completely open source and configurable BLE stack. No softdevice to work around, allowing for full debugging and resource management, continuous updates, with a cross platform API.
@@ -31,17 +31,19 @@ For Nordic devices, this library provides access to a completely open source and
31
31
* Open platformio.ini, a project configuration file located in the root of PlatformIO project.
32
32
* Add the following line to the lib_deps option of [env:] section:
33
33
```
34
-
h2zero/NimBLE-Arduino@^1.4.0
34
+
h2zero/NimBLE-Arduino@^2.1.0
35
35
```
36
36
* Build a project, PlatformIO will automatically install dependencies.
37
37
38
38
# Using
39
-
This library is intended to be compatible with the original ESP32 BLE functions and types with minor changes.
39
+
This library is intended to be compatible with the original ESP32 BLE functions and classes with minor changes.
40
40
41
41
If you have not used the original Bluedroid library please refer to the [New user guide](docs/New_user_guide.md).
42
42
43
43
If you are familiar with the original library, see: [The migration guide](docs/Migration_guide.md) for details about breaking changes and migration.
44
44
45
+
If you already use this library and need to migrate your code to version 2.x see the [1.x to 2.x Migration Guide.](docs/1.x_to2.x_migration_guide.md)
46
+
45
47
[Full API documentation and class list can be found here.](https://h2zero.github.io/NimBLE-Arduino/)
46
48
47
49
For added performance and optimizations see [Usage tips](docs/Usage_tips.md).
@@ -60,9 +62,16 @@ such as increasing max connections, default is 3 for the esp32.
60
62
This Library is tracking the esp-nimble repo, nimble-1.5.0-idf branch, currently [@e3cbdc0.](https://github.com/espressif/esp-nimble)
61
63
<br/>
62
64
65
+
# Sponsors
66
+
Thank you to all the sponsors who support this project!
67
+
68
+
<!-- sponsors --><!-- sponsors -->
69
+
70
+
If you use this library for a commercial product please consider [sponsoring the development](https://github.com/sponsors/h2zero) to ensure the continued updates and maintenance.
71
+
<br/>
72
+
63
73
# Acknowledgments
64
74
*[nkolban](https://github.com/nkolban) and [chegewara](https://github.com/chegewara) for the [original esp32 BLE library](https://github.com/nkolban/esp32-snippets/tree/master/cpp_utils) this project was derived from.
65
75
*[beegee-tokyo](https://github.com/beegee-tokyo) for contributing your time to test/debug and contributing the beacon examples.
66
76
*[Jeroen88](https://github.com/Jeroen88) for the amazing help debugging and improving the client code.
Copy file name to clipboardExpand all lines: docs/index.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Call `NimBLEDevice::init` in `setup`.
24
24
* Open platformio.ini, a project configuration file located in the root of PlatformIO project.
25
25
* Add the following line to the lib_deps option of [env:] section:
26
26
```
27
-
h2zero/NimBLE-Arduino@^1.4.0
27
+
h2zero/NimBLE-Arduino@^2.1.0
28
28
```
29
29
* Build a project, PlatformIO will automatically install dependencies.
30
30
<br/>
@@ -36,13 +36,13 @@ If you have not used the original BLE library please refer to the [New user guid
36
36
37
37
If you are familiar with the original library, see: [The migration guide](Migration_guide.md) for details.
38
38
39
+
If you already use this library and need to migrate your code to version 2.x see the [1.x to 2.x Migration Guide.](docs/1.x_to2.x_migration_guide.md)
40
+
39
41
For more advanced usage see [Usage tips](Usage_tips.md) for more performance and optimization.
40
42
<br/>
41
43
42
44
## Examples
43
-
See the Refactored_original_examples in the examples folder for highlights of the differences with the original library.
44
-
45
-
More advanced examples highlighting many available features are in examples/NimBLE_Server, NimBLE_Client.
45
+
Examples highlighting many available features are in examples/NimBLE_Server, NimBLE_Client.
46
46
47
47
Beacon examples provided by [beegee-tokyo](https://github.com/beegee-tokyo) are in examples/BLE_Beacon_Scanner, BLE_EddystoneTLM_Beacon.
48
48
@@ -55,14 +55,14 @@ As an alternative to changing the configuration in nimconfig.h, Arduino command
55
55
See the command line configuration options available in [Command line config](Command_line_config.md).
56
56
<br/>
57
57
58
-
# Need help? Have a question or suggestion?
59
-
Come chat on [gitter](https://gitter.im/NimBLE-Arduino/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link) or open an issue at [NimBLE-Arduino](https://github.com/h2zero/NimBLE-Arduino/issues) or [esp-nimble-cpp](https://github.com/h2zero/esp-nimble-cpp/issues)
58
+
# Sponsors
59
+
Thank you to all the sponsors who support this project!
60
+
61
+
If you use this library for a commercial product please consider [sponsoring the development](https://github.com/sponsors/h2zero) to ensure the continued updates and maintenance.
60
62
<br/>
61
63
62
64
# Acknowledgments
63
-
64
65
*[nkolban](https://github.com/nkolban) and [chegewara](https://github.com/chegewara) for the [original esp32 BLE library](https://github.com/nkolban/esp32-snippets/tree/master/cpp_utils) this project was derived from.
65
66
*[beegee-tokyo](https://github.com/beegee-tokyo) for contributing your time to test/debug and contributing the beacon examples.
66
67
*[Jeroen88](https://github.com/Jeroen88) for the amazing help debugging and improving the client code.
sentence=Bluetooth low energy (BLE) library for Arduino based on NimBLE.
6
6
paragraph=This is frequently updated and lower resource alternative to the original bluedroid BLE library for esp32 and Nordic nRF5 devices (must use n-able-Arduino core). Uses 50% less flash space and approximately 100KB less ram with the same functionality. Nearly 100% compatible with existing application code, migration guide included.
0 commit comments