add BLE::gap()

This commit is contained in:
Rohit Grover 2015-06-16 11:58:35 +01:00
parent c89eea7a32
commit 5981b610d1
2 changed files with 8 additions and 0 deletions

View file

@ -35,6 +35,7 @@ public:
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,

View file

@ -55,6 +55,13 @@ public:
*/
ble_error_t shutdown(void);
const Gap &gap() const {
return transport->getGap();
}
Gap &gap() {
return transport->getGap();
}
/* GAP specific APIs */
public:
/**