High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Jun 19 15:52:07 2015 +0100
Parent:
528:8d21604fe31d
Child:
530:00800f9ffbfb
Commit message:
Synchronized with git rev 5981b610
Author: Rohit Grover
add BLE::gap()

Changed in this revision

common/BLEInstanceBase.h Show annotated file Show diff for this revision Revisions of this file
public/BLE.h Show annotated file Show diff for this revision Revisions of this file
--- a/common/BLEInstanceBase.h	Fri Jun 19 15:52:07 2015 +0100
+++ b/common/BLEInstanceBase.h	Fri Jun 19 15:52:07 2015 +0100
@@ -35,6 +35,7 @@
     virtual ble_error_t reset(void)                = 0;
     virtual const char *getVersion(void)           = 0;
     virtual Gap&        getGap()                   = 0;
+    virtual const Gap&  getGap() const             = 0;
     virtual GattServer& getGattServer()            = 0;
     virtual GattClient& getGattClient()            = 0;
     virtual ble_error_t initializeSecurity(bool                          enableBonding = true,
--- a/public/BLE.h	Fri Jun 19 15:52:07 2015 +0100
+++ b/public/BLE.h	Fri Jun 19 15:52:07 2015 +0100
@@ -55,6 +55,13 @@
      */
     ble_error_t shutdown(void);
 
+    const Gap &gap() const {
+        return transport->getGap();
+    }
+    Gap &gap() {
+        return transport->getGap();
+    }
+
     /* GAP specific APIs */
 public:
     /**