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.cpp
- Revision:
- 193:29ed6ba3e53f
- Parent:
- 192:3bc89bec110f
- Child:
- 194:c99fc3160091
--- a/btle/btle.cpp Fri Jun 19 15:55:15 2015 +0100 +++ b/btle/btle.cpp Fri Jun 19 15:55:15 2015 +0100 @@ -186,6 +186,13 @@ p_ble_evt->evt.gattc_evt.params.prim_srvc_disc_rsp.services[index].uuid.uuid, p_ble_evt->evt.gattc_evt.params.prim_srvc_disc_rsp.services[index].handle_range.start_handle, p_ble_evt->evt.gattc_evt.params.prim_srvc_disc_rsp.services[index].handle_range.end_handle); + + ble_gattc_handle_range_t handleRange = { + .start_handle = p_ble_evt->evt.gattc_evt.params.prim_srvc_disc_rsp.services[index].handle_range.start_handle, + .end_handle = p_ble_evt->evt.gattc_evt.params.prim_srvc_disc_rsp.services[index].handle_range.end_handle + }; + printf("characteristics_discover returned %u\r\n", + sd_ble_gattc_characteristics_discover(p_ble_evt->evt.gattc_evt.conn_handle, &handleRange)); } printf("services discover returned %u\r\n", sd_ble_gattc_primary_services_discover(p_ble_evt->evt.gattc_evt.conn_handle, @@ -204,6 +211,15 @@ } break; + case BLE_GATTC_EVT_CHAR_DISC_RSP: { + switch (p_ble_evt->evt.gattc_evt.gatt_status) { + default: + printf("gatt failure status: %u\r\n", p_ble_evt->evt.gattc_evt.gatt_status); + break; + } + break; + } + default: break; }