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:
- 200:be560f1834c0
- Parent:
- 199:c2c831c55f3d
- Child:
- 201:a13ada00eac7
--- a/btle/btle_gattc.cpp Fri Jun 19 15:55:16 2015 +0100
+++ b/btle/btle_gattc.cpp Fri Jun 19 15:55:16 2015 +0100
@@ -53,7 +53,8 @@
uint8_t srvCount; /**< Number of services at the peers GATT database.*/
// uint8_t currCharInd; /**< Index of the current characteristic being discovered. This is intended for internal use during service discovery.*/
uint8_t currSrvInd; /**< Index of the current service being discovered. This is intended for internal use during service discovery.*/
- bool serviceDiscoveryInProgress; /**< Variable to indicate if there is a service discovery in progress. */
+ bool serviceDiscoveryInProgress;
+ bool characteristicDiscoveryInProgress;
};
static ble_db_discovery_t discoveryStatus;
@@ -61,7 +62,8 @@
void launchServiceDiscovery(Gap::Handle_t connectionHandle)
{
// printf("connectionHandle %u\r\n", connectionHandle);
- discoveryStatus.serviceDiscoveryInProgress = true;
+ discoveryStatus.serviceDiscoveryInProgress = true;
+ discoveryStatus.characteristicDiscoveryInProgress = false;
printf("launch service discovery returned %u\r\n", sd_ble_gattc_primary_services_discover(connectionHandle, SRV_DISC_START_HANDLE, NULL));
}
