High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: public/BLEDevice.h
- Revision:
- 442:c120ffca22fa
- Parent:
- 441:2d864886aeca
- Child:
- 444:0ecf7ce69172
diff -r 2d864886aeca -r c120ffca22fa public/BLEDevice.h --- a/public/BLEDevice.h Fri Jun 19 15:51:56 2015 +0100 +++ b/public/BLEDevice.h Fri Jun 19 15:51:56 2015 +0100 @@ -320,6 +320,7 @@ ble_error_t stopScan(void); ble_error_t connect(const Gap::Address_t peerAddr, Gap::AddressType_t peerAddrType = Gap::ADDR_TYPE_RANDOM_STATIC); + ble_error_t connect(const Gap::Address_t peerAddr, Gap::AddressType_t peerAddrType, const GapScanningParams &scanParams); /** * This call initiates the disconnection procedure, and its completion will @@ -861,7 +862,11 @@ inline ble_error_t BLEDevice::connect(const Gap::Address_t peerAddr, Gap::AddressType_t peerAddrType) { - return transport->getGap().connect(peerAddr, peerAddrType); + return transport->getGap().connect(peerAddr, peerAddrType, scanningParams); +} +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); } inline ble_error_t