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
Diff: btle/btle_gattc.cpp
- Revision:
- 218:6812c045735a
- Parent:
- 217:c57cbfdfb5ca
- Child:
- 219:681be3608738
diff -r c57cbfdfb5ca -r 6812c045735a btle/btle_gattc.cpp
--- a/btle/btle_gattc.cpp Fri Jun 19 15:55:18 2015 +0100
+++ b/btle/btle_gattc.cpp Fri Jun 19 15:55:18 2015 +0100
@@ -177,10 +177,12 @@
for (; charIndex < discoveryStatus.charCount; charIndex++) {
printf("%x [%u]\r\n", p_ble_evt->evt.gattc_evt.params.char_disc_rsp.chars[charIndex].uuid.uuid,
p_ble_evt->evt.gattc_evt.params.char_disc_rsp.chars[charIndex].handle_value);
- // discoveryStatus.characteristics[charIndex].
- // setup(p_ble_evt->evt.gattc_evt.params.prim_srvc_disc_rsp.services[charIndex].uuid.uuid,
- // p_ble_evt->evt.gattc_evt.params.prim_srvc_disc_rsp.services[charIndex].handle_range.start_handle,
- // p_ble_evt->evt.gattc_evt.params.prim_srvc_disc_rsp.services[charIndex].handle_range.end_handle);
+
+ discoveryStatus.characteristics[charIndex].
+ setup(p_ble_evt->evt.gattc_evt.params.char_disc_rsp.chars[charIndex].uuid.uuid,
+ p_ble_evt->evt.gattc_evt.params.char_disc_rsp.chars[charIndex].char_props,
+ p_ble_evt->evt.gattc_evt.params.char_disc_rsp.chars[charIndex].handle_decl,
+ p_ble_evt->evt.gattc_evt.params.char_disc_rsp.chars[charIndex].handle_value);
}
Gap::Handle_t startHandle = p_ble_evt->evt.gattc_evt.params.char_disc_rsp.chars[charIndex - 1].handle_value + 1;
