use Gap::ConnectionParams_t in connect()
This commit is contained in:
parent
611f05f577
commit
6a88d2af37
2 changed files with 5 additions and 3 deletions
|
@ -862,11 +862,13 @@ BLEDevice::stopScan(void) {
|
|||
|
||||
inline ble_error_t
|
||||
BLEDevice::connect(const Gap::Address_t peerAddr, Gap::AddressType_t peerAddrType) {
|
||||
return transport->getGap().connect(peerAddr, peerAddrType, scanningParams);
|
||||
Gap::ConnectionParams_t connectionParams;
|
||||
return transport->getGap().connect(peerAddr, peerAddrType, scanningParams, connectionParams);
|
||||
}
|
||||
inline ble_error_t
|
||||
BLEDevice::connect(const Gap::Address_t peerAddr, Gap::AddressType_t peerAddrType, const GapScanningParams &scanParams) {
|
||||
return transport->getGap().connect(peerAddr, peerAddrType, scanParams);
|
||||
Gap::ConnectionParams_t connectionParams;
|
||||
return transport->getGap().connect(peerAddr, peerAddrType, scanParams, connectionParams);
|
||||
}
|
||||
|
||||
inline ble_error_t
|
||||
|
|
|
@ -177,7 +177,7 @@ private:
|
|||
virtual uint16_t getMinAdvertisingInterval(void) const = 0;
|
||||
virtual uint16_t getMinNonConnectableAdvertisingInterval(void) const = 0;
|
||||
virtual uint16_t getMaxAdvertisingInterval(void) const = 0;
|
||||
virtual ble_error_t connect(const Address_t peerAddr, Gap::AddressType_t peerAddrType, const GapScanningParams &scanParams) = 0;
|
||||
virtual ble_error_t connect(const Address_t peerAddr, Gap::AddressType_t peerAddrType, const GapScanningParams &scanParams, const ConnectionParams_t& connectionParams) = 0;
|
||||
virtual ble_error_t disconnect(DisconnectionReason_t reason) = 0;
|
||||
virtual ble_error_t getPreferredConnectionParams(ConnectionParams_t *params) = 0;
|
||||
virtual ble_error_t setPreferredConnectionParams(const ConnectionParams_t *params) = 0;
|
||||
|
|
Loading…
Reference in a new issue