Skip to content

Commit 4e24a06

Browse files
committed
Release 1.1.0
1 parent 310c5f7 commit 4e24a06

File tree

7 files changed

+51
-29
lines changed

7 files changed

+51
-29
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [Unreleased]
5+
## [1.1.0] - 2021-01-20
66

77
### Added
88
- `NimBLEDevice::setOwnAddrType` added to enable the use of random and random-resolvable addresses, by asukiaaa

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[Latest release ![Release Version](https://img.shields.io/github/release/h2zero/esp-nimble-cpp.svg?style=plastic)
22
![Release Date](https://img.shields.io/github/release-date/h2zero/esp-nimble-cpp.svg?style=plastic)](https://github.com/h2zero/esp-nimble-cpp/releases/latest/)
3+
4+
Need help? Have questions or suggestions? Join the [![Gitter](https://badges.gitter.im/NimBLE-Arduino/community.svg)](https://gitter.im/NimBLE-Arduino/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
35
<br/>
46

57
# esp-nimble-cpp
@@ -17,7 +19,7 @@ to provide improved capabilites and stability over the original.
1719
*Your results may vary*
1820
<br/>
1921

20-
### What is NimBLE?
22+
# What is NimBLE?
2123
NimBLE is a completely open source Bluetooth Low Energy stack produced by [Apache](https://github.com/apache/mynewt-nimble).
2224
It is more suited to resource constrained devices than bluedroid and has now been ported to the ESP32 by Espressif.
2325
<br/>
@@ -34,7 +36,7 @@ Call `NimBLEDevice::init("");` in `app_main`.
3436
<br/>
3537

3638
### ESP-IDF v3.2 & v3.3
37-
The NimBLE component does not come with these versions of IDF.
39+
The NimBLE component does not come with these versions of IDF (now included in 3.3.2 and above).
3840
A backport that works in these versions has been created and is [available here](https://github.com/h2zero/esp-nimble-component).
3941
Download or clone that repo into your project/components folder and run menuconfig.
4042
Configure settings in `main menu -> NimBLE Options`.

docs/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "esp-nimble-cpp / NimBLE-Arduino"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 1.0.2
41+
PROJECT_NUMBER = 1.1.0
4242

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

docs/index.md

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
# Overview
22

33
This is a C++ BLE library for the ESP32 that uses the NimBLE host stack instead of bluedroid.
4-
The aim is to maintain, as much as reasonable, the original bluedroid C++ API while adding new features
5-
and making improvements in performance, resource use and stability.
4+
The aim is to maintain, as much as reasonable, the original bluedroid C++ & Arduino BLE API by while adding new features
5+
and making improvements in performance, resource use, and stability.
66

77
**Testing shows a nearly 50% reduction in flash use and approx. 100kB less ram consumed vs the original!**
8-
*Your results may vary*
9-
<br/>
8+
*Your results may vary*
9+
<br/>
1010

11-
### What is NimBLE?
11+
# What is NimBLE?
1212
NimBLE is a completely open source Bluetooth Low Energy stack produced by [Apache](https://github.com/apache/mynewt-nimble).
1313
It is more suited to resource constrained devices than bluedroid and has now been ported to the ESP32 by Espressif.
1414
<br/>
1515

1616
# Arduino Installation
17-
Download as .zip and extract to Arduino/libraries folder, or in Arduino IDE from Sketch menu -> Include library -> Add .Zip library.
17+
**Arduino Library manager:** Go to `sketch` -> `Include Library` -> `Manage Libraries` and search for NimBLE and install.
18+
19+
**Alternatively:** Download as .zip and extract to Arduino/libraries folder, or in Arduino IDE from Sketch menu -> Include library -> Add .Zip library.
1820

19-
`#include "NimBLEDevice.h"` at the beginning of your sketch.
21+
`#include "NimBLEDevice.h"` at the beginning of your sketch.
2022

21-
Tested and working with esp32-arduino Arduino IDE and platform IO.
23+
Call `NimBLEDevice::init` in `setup`.
24+
25+
Tested and working with esp32-arduino in Arduino IDE and platform IO.
2226
<br/>
2327

2428
# ESP-IDF Installation
@@ -28,17 +32,17 @@ Download as .zip and extract or clone into the components folder in your esp-idf
2832
Run menuconfig, go to `Component config->Bluetooth` enable Bluetooth and in `Bluetooth host` NimBLE.
2933
Configure settings in `NimBLE Options`.
3034
`#include "NimBLEDevice.h"` in main.cpp.
31-
Call `NimBLEDevice::init("");` in `app_main`.
35+
Call `NimBLEDevice::init` in `app_main`.
3236
<br/>
3337

3438
### v3.2 & v3.3
35-
The NimBLE component does not come with these versions of IDF.
39+
The NimBLE component does not come with these versions of IDF (now included in 3.3.2 and above).
3640
A backport that works in these versions has been created and is [available here](https://github.com/h2zero/esp-nimble-component).
3741
Download or clone that repo into your project/components folder and run menuconfig.
3842
Configure settings in `main menu -> NimBLE Options`.
3943

4044
`#include "NimBLEDevice.h"` in main.cpp.
41-
Call `NimBLEDevice::init("");` in `app_main`.
45+
Call `NimBLEDevice::init` in `app_main`.
4246
<br/>
4347

4448
# Using
@@ -50,7 +54,8 @@ If you are familiar with the original library, see: [The migration guide](Migrat
5054

5155
Also see [Improvements and updates](Improvements_and_updates.md) for information about non-breaking changes.
5256

53-
For more advanced usage see [Usage tips](Usage_tips.md) for more performance and optimization.
57+
For more advanced usage see [Usage tips](Usage_tips.md) for more performance and optimization.
58+
<br/>
5459

5560
### Arduino specific
5661
See the Refactored_original_examples in the examples folder for highlights of the differences with the original library.
@@ -60,12 +65,17 @@ More advanced examples highlighting many available features are in examples/NimB
6065
Beacon examples provided by [beegee-tokyo](https://github.com/beegee-tokyo) are in examples/BLE_Beacon_Scanner, BLE_EddystoneTLM_Beacon, BLE_EddystoneURL_Beacon.
6166

6267
Change the settings in the nimconfig.h file to customize NimBLE to your project, such as increasing max connections (default is 3).
63-
<br/>
68+
<br/>
6469

65-
### Command line and platformio
70+
### Arduino command line and platformio
71+
As an alternative to changing the configuration in nimconfig.h, Arduino command line and platformio.ini options are available.
6672
See the command line configuration options available in [Command line config](Command_line_config.md).
6773
<br/>
6874

75+
# Need help? Have a question or suggestion?
76+
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)
77+
<br/>
78+
6979
# Acknowledgments
7080

7181
* [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.

src/NimBLEClient.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ int NimBLEClient::disconnect(uint8_t reason) {
378378

379379
/**
380380
* @brief Set the connection paramaters to use when connecting to a server.
381-
* @param [in] minInterval minimum connection interval in 0.625ms units.
382-
* @param [in] maxInterval maximum connection interval in 0.625ms units.
383-
* @param [in] latency number of packets allowed to skip (extends max interval)
384-
* @param [in] timeout the timeout time in 10ms units before disconnecting
385-
* @param [in] scanInterval the scan interval to use when attempting to connect in 0.625ms units.
386-
* @param [in] scanWindow the scan window to use when attempting to connect in 0.625ms units.
381+
* @param [in] minInterval The minimum connection interval in 1.25ms units.
382+
* @param [in] maxInterval The maximum connection interval in 1.25ms units.
383+
* @param [in] latency The number of packets allowed to skip (extends max interval).
384+
* @param [in] timeout The timeout time in 10ms units before disconnecting.
385+
* @param [in] scanInterval The scan interval to use when attempting to connect in 0.625ms units.
386+
* @param [in] scanWindow The scan window to use when attempting to connect in 0.625ms units.
387387
*/
388388
void NimBLEClient::setConnectionParams(uint16_t minInterval, uint16_t maxInterval,
389389
uint16_t latency, uint16_t timeout,
@@ -410,10 +410,10 @@ void NimBLEClient::setConnectionParams(uint16_t minInterval, uint16_t maxInterva
410410
/**
411411
* @brief Update the connection parameters:
412412
* * Can only be used after a connection has been established.
413-
* @param [in] minInterval minimum connection interval in 0.625ms units.
414-
* @param [in] maxInterval maximum connection interval in 0.625ms units.
415-
* @param [in] latency number of packets allowed to skip (extends max interval)
416-
* @param [in] timeout the timeout time in 10ms units before disconnecting
413+
* @param [in] minInterval The minimum connection interval in 1.25ms units.
414+
* @param [in] maxInterval The maximum connection interval in 1.25ms units.
415+
* @param [in] latency The number of packets allowed to skip (extends max interval).
416+
* @param [in] timeout The timeout time in 10ms units before disconnecting.
417417
*/
418418
void NimBLEClient::updateConnParams(uint16_t minInterval, uint16_t maxInterval,
419419
uint16_t latency, uint16_t timeout)

src/NimBLEHIDDevice.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
#define HID_DIGITAL_PEN 0x03C7
3737
#define HID_BARCODE 0x03C8
3838

39+
40+
/**
41+
* @brief A model of a %BLE Human Interface Device.
42+
*/
3943
class NimBLEHIDDevice {
4044
public:
4145
NimBLEHIDDevice(NimBLEServer*);

src/NimBLEServer.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,13 @@ uint16_t NimBLEServer::getPeerMTU(uint16_t conn_id) {
621621

622622

623623
/**
624-
* Update connection parameters can be called only after connection has been established
624+
* @brief Request an Update the connection parameters:
625+
* * Can only be used after a connection has been established.
626+
* @param [in] conn_handle The connection handle of the peer to send the request to.
627+
* @param [in] minInterval The minimum connection interval in 1.25ms units.
628+
* @param [in] maxInterval The maximum connection interval in 1.25ms units.
629+
* @param [in] latency The number of packets allowed to skip (extends max interval).
630+
* @param [in] timeout The timeout time in 10ms units before disconnecting.
625631
*/
626632
void NimBLEServer::updateConnParams(uint16_t conn_handle,
627633
uint16_t minInterval, uint16_t maxInterval,

0 commit comments

Comments
 (0)