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: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 335:601d65634447
- Parent:
- 333:8eedcd324853
- Child:
- 336:6ac9e1b34de0
diff -r 5dcd58729c5b -r 601d65634447 btle/btle_discovery.cpp --- a/btle/btle_discovery.cpp Fri Jun 19 15:55:33 2015 +0100 +++ b/btle/btle_discovery.cpp Fri Jun 19 15:55:33 2015 +0100 @@ -56,11 +56,11 @@ case BLE_GATTC_EVT_READ_RSP: if (DiscoveredCharacteristic::onDataReadCallback != NULL) { - GattClient::ReadResponse_t response = { - .handle = p_ble_evt->evt.gattc_evt.params.read_rsp.handle, - .offset = p_ble_evt->evt.gattc_evt.params.read_rsp.offset, - .len = p_ble_evt->evt.gattc_evt.params.read_rsp.len, - .data = p_ble_evt->evt.gattc_evt.params.read_rsp.data, + GattCharacteristicReadCBParams response = { + .charHandle = p_ble_evt->evt.gattc_evt.params.read_rsp.handle, + .offset = p_ble_evt->evt.gattc_evt.params.read_rsp.offset, + .len = p_ble_evt->evt.gattc_evt.params.read_rsp.len, + .data = p_ble_evt->evt.gattc_evt.params.read_rsp.data, }; DiscoveredCharacteristic::onDataReadCallback(&response); }