![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
aa
Dependents: Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 311:5d5abc30e3a8
- Parent:
- 306:76e2e7349319
- Child:
- 313:d579d093f23f
--- 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);