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.
Dependencies: BLE_API mbed-dev nRF51822
Diff: HIDController_BLE.cpp
- Revision:
- 18:5d0232c9e70e
- Parent:
- 17:3233ee19f716
- Child:
- 19:cd7f2fe05ae4
--- a/HIDController_BLE.cpp Mon Aug 22 12:58:29 2016 +0000 +++ b/HIDController_BLE.cpp Mon Aug 22 13:06:35 2016 +0000 @@ -130,11 +130,11 @@ BLE &ble = params->ble; /**< Minimum Connection Interval in 1.25 ms units, see BLE_GAP_CP_LIMITS.*/ - uint16_t minConnectionInterval = Gap::MSEC_TO_GAP_DURATION_UNITS(12); + uint16_t minConnectionInterval = Gap::MSEC_TO_GAP_DURATION_UNITS(24); /**< Maximum Connection Interval in 1.25 ms units, see BLE_GAP_CP_LIMITS.*/ - uint16_t maxConnectionInterval = Gap::MSEC_TO_GAP_DURATION_UNITS(22); + uint16_t maxConnectionInterval = Gap::MSEC_TO_GAP_DURATION_UNITS(44); /**< Slave Latency in number of connection events, see BLE_GAP_CP_LIMITS.*/ - uint16_t slaveLatency = 0; + uint16_t slaveLatency = 4; /**< Connection Supervision Timeout in 10 ms units, see BLE_GAP_CP_LIMITS.*/ uint16_t connectionSupervisionTimeout = 32 * 100; Gap::ConnectionParams_t connectionParams = {