BLE
Fork of BLE_API by
Diff: public/BLE.h
- Revision:
- 539:fff02872b62f
- Parent:
- 538:00d5affbb2b2
- Child:
- 540:0b6e82025358
diff -r 00d5affbb2b2 -r fff02872b62f public/BLE.h --- a/public/BLE.h Fri Jun 19 15:52:08 2015 +0100 +++ b/public/BLE.h Fri Jun 19 15:52:08 2015 +0100 @@ -74,6 +74,17 @@ return transport->getGap(); } + /* + * Accessors to GATT Server. Please refer to GattServer.h. All GATTServer related + * functionality requires going through this accessor. + */ + const GattServer& gattServer() const { + return transport->getGattServer(); + } + GattServer& gattServer() { + return transport->getGattServer(); + } + /** * Yield control to the BLE stack or to other tasks waiting for events. This * is a sleep function which will return when there is an application