BLE_API_Tiny_BLE

Dependents:   CSSE4011_BLE_IMU

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

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: