From f135020de981444b18fafe9972ca9c9cec0cb0ec Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Fri, 1 May 2015 08:29:57 +0100 Subject: [PATCH] launchCharacteristicDiscovery now calls sd_ble_gattc_characteristics_discover() --- btle/btle_gattc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/btle/btle_gattc.cpp b/btle/btle_gattc.cpp index 1f40b46..e79120c 100644 --- a/btle/btle_gattc.cpp +++ b/btle/btle_gattc.cpp @@ -100,6 +100,12 @@ void launchCharacteristicDiscovery(Gap::Handle_t connectionHandle, Gap::Handle_t discoveryStatus.connHandle = connectionHandle; discoveryStatus.currCharInd = 0; + + ble_gattc_handle_range_t handleRange = { + .start_handle = startHandle, + .end_handle = endHandle + }; + printf("launch characteristic discovery returned %u\r\n", sd_ble_gattc_characteristics_discover(connectionHandle, &handleRange)); } void bleGattcEventHandler(const ble_evt_t *p_ble_evt)