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:
- 311:5d5abc30e3a8
- Parent:
- 306:76e2e7349319
- Child:
- 313:d579d093f23f
diff -r 4d7ccb8c2a51 -r 5d5abc30e3a8 btle/btle_discovery.cpp --- a/btle/btle_discovery.cpp Fri Jun 19 15:55:30 2015 +0100 +++ b/btle/btle_discovery.cpp Fri Jun 19 15:55:30 2015 +0100 @@ -247,11 +247,13 @@ for (unsigned charIndex = 0; charIndex < numCharacteristics; charIndex++) { if (response->chars[charIndex].uuid.type == BLE_UUID_TYPE_UNKNOWN) { charUUIDDiscoveryQueue.enqueue(charIndex); - characteristics[charIndex].setup(*(const uint8_t *)(&response->chars[charIndex].char_props), + characteristics[charIndex].setup(connHandle, + *(const uint8_t *)(&response->chars[charIndex].char_props), response->chars[charIndex].handle_decl, response->chars[charIndex].handle_value); } else { - characteristics[charIndex].setup(response->chars[charIndex].uuid.uuid, + characteristics[charIndex].setup(connHandle, + response->chars[charIndex].uuid.uuid, *(const uint8_t *)(&response->chars[charIndex].char_props), response->chars[charIndex].handle_decl, response->chars[charIndex].handle_value);