Microbug / BLE_API

Fork of BLE_API by Bluetooth Low Energy

Revision:
73:eeb1ac3545e9
Parent:
72:bd485a3b18c5
Child:
74:301042c34cb8
--- a/hw/BLEDevice.h	Fri Jun 06 11:08:32 2014 +0100
+++ b/hw/BLEDevice.h	Fri Jun 06 11:17:37 2014 +0100
@@ -143,6 +143,8 @@
 
     ble_error_t addService(GattService &service);
 
+    Gap::GapState_t getGapState(void) const;
+
 private:
     /**
      * Internal helper to udpate the transport backend with advertising data
@@ -338,6 +340,11 @@
     return transport->getGattServer().addService(service);
 }
 
+inline Gap::GapState_t
+BLEDevice::getGapState(void) const {
+    return transport->getGap().getState();
+}
+
 /*
  * ALL OF THE FOLLOWING METHODS ARE DEPRECATED
  */