Bike service
Fork of BLE_API by
Diff: public/BLE.h
- Revision:
- 538:fff02872b62f
- Parent:
- 537:00d5affbb2b2
- Child:
- 539:0b6e82025358
--- 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