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: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
Diff: btle/btle.cpp
- Revision:
- 271:208d78ccc9b7
- Parent:
- 247:df37e7bb3f71
- Child:
- 340:775dab2ff027
diff -r 3edb22234707 -r 208d78ccc9b7 btle/btle.cpp
--- a/btle/btle.cpp Fri Jun 19 15:55:25 2015 +0100
+++ b/btle/btle.cpp Fri Jun 19 15:55:25 2015 +0100
@@ -116,6 +116,7 @@
const ble_gap_addr_t *peer = &p_ble_evt->evt.gap_evt.params.connected.peer_addr;
const ble_gap_addr_t *own = &p_ble_evt->evt.gap_evt.params.connected.own_addr;
nRF51Gap::getInstance().processConnectionEvent(handle,
+ static_cast<Gap::Role_t>(p_ble_evt->evt.gap_evt.params.connected.role),
static_cast<Gap::AddressType_t>(peer->addr_type), peer->addr,
static_cast<Gap::AddressType_t>(own->addr_type), own->addr,
params);