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.
Fork of nRF51822 by
Revision 153:3397d1bc1ab1, committed 2015-05-08
- Comitter:
- rgrover1
- Date:
- Fri May 08 15:33:58 2015 +0100
- Parent:
- 152:0e74b7590ab2
- Child:
- 154:9d51b9dfc72e
- Commit message:
- Synchronized with git rev 2d0cff4e
Author: Rohit Grover
delete handling of BLE_GAP_EVT_SEC_PARAMS_REQUEST in btle.cpp.
THis is now done in btle_security.cpp
Changed in this revision
| btle/btle.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/btle/btle.cpp Fri May 08 15:33:58 2015 +0100
+++ b/btle/btle.cpp Fri May 08 15:33:58 2015 +0100
@@ -146,22 +146,6 @@
break;
}
- case BLE_GAP_EVT_SEC_PARAMS_REQUEST: {
- ble_gap_sec_params_t sec_params = {0};
-
- sec_params.bond = 1; /**< Perform bonding. */
- sec_params.mitm = CFG_BLE_SEC_PARAM_MITM;
- sec_params.io_caps = CFG_BLE_SEC_PARAM_IO_CAPABILITIES;
- sec_params.oob = CFG_BLE_SEC_PARAM_OOB;
- sec_params.min_key_size = CFG_BLE_SEC_PARAM_MIN_KEY_SIZE;
- sec_params.max_key_size = CFG_BLE_SEC_PARAM_MAX_KEY_SIZE;
-
- ble_gap_sec_keyset_t sec_keyset = {0};
-
- ASSERT_STATUS_RET_VOID(sd_ble_gap_sec_params_reply(nRF51Gap::getInstance().getConnectionHandle(), BLE_GAP_SEC_STATUS_SUCCESS, &sec_params, &sec_keyset));
- }
- break;
-
case BLE_GAP_EVT_TIMEOUT:
if (p_ble_evt->evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_ADVERTISING) {
nRF51Gap::getInstance().processEvent(GapEvents::GAP_EVENT_TIMEOUT);
