Commit 4b4240e
Jira #758, Add scan response support for central role, git 370
Feature added:
1. GIT#370 Add scan response support for central role
Arduino request that the BLE library, in Peripheral mode,
to support Scan Response Data request from a Central.
2. Arduino expects the reply similar to an Apple device.
They have provide a policy for the construction of the
Scan Response data message.
3. Jira 836 BLE Central scan does not enumerate peripherals that are
non connectable.
In Central mode, the BLE library should enumerate Peripheral
that are non-connectable (eg beacon).
Code mods:
BLEDevice.cpp:
1. Add the call to get Manufacturer Data info from a Peripheral.
Non-connectable device may only broadcast this info.
BLEDeviceManager.cpp:
1. Added setAdvertiseData() for the creation of the Scan Response Data message.
2. In advDataInit(), follows the policy (defined by Arduino) to add Adv data to
the Scan Response Data message using setAdvertiseData().
3. Delete the filter about non-connectable advertisement.
4. Added APIs, hasManufacturerData(), setManufacturerData(),
hasManufacturerData(), to gain access to adv info of
non-connectable Peripherals.
BLEDeviceManager.h:
BLEDevice.h:
Prototyping.1 parent d818a3a commit 4b4240e
File tree
4 files changed
+566
-224
lines changed- libraries/CurieBLE/src
- internal
4 files changed
+566
-224
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
136 | 147 | | |
137 | 148 | | |
138 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
194 | 199 | | |
195 | 200 | | |
196 | 201 | | |
| |||
0 commit comments