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
Have been added as templates to allow reading the values as any specified type.
60
70
@@ -73,14 +83,14 @@ struct my_struct{
73
83
```
74
84
<br/>
75
85
76
-
NimBLERemoteCharacteristic::registerForNotify
86
+
`NimBLERemoteCharacteristic::registerForNotify`
77
87
Has been **deprecated** as now the internally stored characteristic value is updated when notification/indication is recieved.
78
88
79
-
NimBLERemoteCharacteristic::subscribe and NimBLERemoteCharacteristic::unsubscribe have been implemented to replace it.
80
-
A callback is no longer requred to get the most recent value unless timing is important. Instead, the application can call NimBLERemoteCharacteristic::getValue to
89
+
`NimBLERemoteCharacteristic::subscribe` and `NimBLERemoteCharacteristic::unsubscribe` have been implemented to replace it.
90
+
A callback is no longer requred to get the most recent value unless timing is important. Instead, the application can call `NimBLERemoteCharacteristic::getValue` to
81
91
get the last updated value any time.
82
92
83
-
In addition NimBLERemoteCharacteristic::readValue and NimBLERemoteCharacteristic::getValue take an optional timestamp parameter which will update it's value with
93
+
In addition `NimBLERemoteCharacteristic::readValue` and `NimBLERemoteCharacteristic::getValue` take an optional timestamp parameter which will update it's value with
84
94
the time the last value was recieved.
85
95
86
96
> NimBLEClient::getService
@@ -93,24 +103,23 @@ the specified attribute from the peripheral.
93
103
These changes allow more control for the user to manage the resources used for the attributes.
94
104
<br/>
95
105
96
-
NimBLEClient::connect() can now be called without an address or advertised device parameter. This will connect to the
97
-
device with the address previously set when last connected or set with NimBLEDevice::setPeerAddress().
106
+
`NimBLEClient::connect()` can now be called without an address or advertised device parameter. This will connect to the
107
+
device with the address previously set when last connected or set with `NimBLEDevice::setPeerAddress()`.
98
108
109
+
<aname="general"></a>
99
110
# General
100
-
To reduce resource use all instances of std::map have been replaced with std::vector.
111
+
To reduce resource use all instances of `std::map` have been replaced with `std::vector`.
101
112
102
-
Use of FreeRTOS::Semaphore has been removed as it was consuming too much ram, the related files have been left in place to accomodate application use.
113
+
Use of `FreeRTOS::Semaphore` has been removed as it was consuming too much ram, the related files have been left in place to accomodate application use.
103
114
104
-
Operators `==`, `!=` and `std::string` have been added to NimBLEAddress and NimBLEUUID for easier comparison and logging.
115
+
Operators `==`, `!=` and `std::string` have been added to `NimBLEAddress` and `NimBLEUUID` for easier comparison and logging.
105
116
106
-
New constructor for NimBLEUUID(uint32_t, uint16_t, uint16_t, uint64_t) added to lower memory use vs string construction. See: [#21](https://github.com/h2zero/NimBLE-Arduino/pull/21).
117
+
New constructor for `NimBLEUUID(uint32_t, uint16_t, uint16_t, uint64_t)` added to lower memory use vs string construction. See: [#21](https://github.com/h2zero/NimBLE-Arduino/pull/21).
107
118
108
-
Security/pairing operations are now handled in the respective NimBLEClientCallbacks and NimBLEServerCallbacks classes, NimBLESecurity(deprecated) remains for backward compatibility.
119
+
Security/pairing operations are now handled in the respective `NimBLEClientCallbacks` and `NimBLEServerCallbacks` classes, `NimBLESecurity`(deprecated) remains for backward compatibility.
109
120
110
121
Configuration options have been added to add or remove debugging information, when disabled (default) significatly reduces binary size.
111
122
In ESP-IDF the options are in menuconfig: `Main menu -> ESP-NimBLE-cpp configuration`.
112
123
For Arduino the options must be commented / uncommented in nimconfig.h.
113
-
114
-
Many more internal improvements have been made as well, this is a brief overview. Refer to the class docs for futher information on class specifics.
0 commit comments