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.
Fork of BLE_API by
Diff: hw/BLEDevice.h
- 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
*/
