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.
Dependencies: nrf51-sdk
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 283:c4c2aeab86c3
- Parent:
- 282:6633922380bf
- Child:
- 284:29fb6af6671d
diff -r 6633922380bf -r c4c2aeab86c3 btle/btle_discovery.cpp
--- 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);
