Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate BLE_ANCS_SDAPI_IRC ... more
Diff: public/BLEDevice.h
- Revision:
- 445:c1e8af80a9cd
- Parent:
- 444:0ecf7ce69172
- Child:
- 446:4fdb01767cff
diff -r 0ecf7ce69172 -r c1e8af80a9cd 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
@@ -862,12 +862,24 @@
inline ble_error_t
BLEDevice::connect(const Gap::Address_t peerAddr, Gap::AddressType_t peerAddrType) {
- Gap::ConnectionParams_t connectionParams;
+ Gap::ConnectionParams_t connectionParams = {
+ .minConnectionInterval = 30,
+ .maxConnectionInterval = 100,
+ .slaveLatency = 0,
+ .connectionSupervisionTimeout = 400
+ };
+
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) {
- Gap::ConnectionParams_t connectionParams;
+ Gap::ConnectionParams_t connectionParams = {
+ .minConnectionInterval = 30,
+ .maxConnectionInterval = 100,
+ .slaveLatency = 0,
+ .connectionSupervisionTimeout = 400
+ };
+
return transport->getGap().connect(peerAddr, peerAddrType, scanParams, connectionParams);
}