BLE_API_Tiny_BLE
Fork of BLE_API by
Revision 382:dcd0428dadb0, committed 2015-05-13
- Comitter:
- rgrover1
- Date:
- Wed May 13 08:51:07 2015 +0100
- Parent:
- 381:12cb29d3cea4
- Child:
- 383:7bd527ea7280
- Commit message:
- Synchronized with git rev b8b18516
Author: Rohit Grover
add Gap::onAdvertisementReport and processAdvertisementReport()
Changed in this revision
public/Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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: