add BLE::gap()
This commit is contained in:
parent
c89eea7a32
commit
5981b610d1
2 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue