Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BLE_PowerBank_HeyFaradey
Fork of BLE_API by
Diff: public/Gap.h
- Revision:
- 382:dcd0428dadb0
- Parent:
- 381:12cb29d3cea4
- Child:
- 385:6e66d1c6de00
--- a/public/Gap.h Wed May 13 08:51:07 2015 +0100
+++ b/public/Gap.h Wed May 13 08:51:07 2015 +0100
@@ -261,6 +261,7 @@
onLinkSecured(),
onSecurityContextStored(),
onPasskeyDisplay(),
+ onAdvertisementReport(),
disconnectionCallChain() {
/* empty */
}
@@ -311,6 +312,17 @@
}
}
+ void processAdvertisementReport(const address_t peerAddr,
+ int8_t rssi,
+ bool isScanResponse,
+ AdvertisementType_t type,
+ uint8_t advertisingDataLen,
+ const uint8_t *advertisingData) {
+ if (onAdvertisementReport) {
+ onAdvertisementReport(peerAddr, rssi, isScanResponse, type, advertisingDataLen, advertisingData);
+ }
+ }
+
void processEvent(GapEvents::gapEvent_e type) {
switch (type) {
case GapEvents::GAP_EVENT_TIMEOUT:
