nordic
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 284:c4c2aeab86c3
- Parent:
- 283:6633922380bf
- Child:
- 285:29fb6af6671d
--- a/btle/btle_discovery.cpp Fri Jun 19 15:55:26 2015 +0100 +++ b/btle/btle_discovery.cpp Fri Jun 19 15:55:26 2015 +0100 @@ -104,6 +104,8 @@ return BLE_ERROR_NONE; } +#include <stdio.h> + void NordicServiceDiscovery::setupDiscoveredServices(const ble_gattc_evt_prim_srvc_disc_rsp_t *response) { @@ -116,6 +118,10 @@ } for (unsigned serviceIndex = 0; serviceIndex < numServices; serviceIndex++) { + if (response->services[serviceIndex].uuid.type == BLE_UUID_TYPE_UNKNOWN) { + printf("service[0] uuid type %u\r\n", response->services[0].uuid.type); + } + // sd_ble_gattc_char_value_by_uuid_read services[serviceIndex].setup(response->services[serviceIndex].uuid.uuid, response->services[serviceIndex].handle_range.start_handle, response->services[serviceIndex].handle_range.end_handle);