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:
- 204:2d370bfdfa21
- Parent:
- 203:fc9a565a1b2f
- Child:
- 205:7b1c55e70f45
--- a/btle/btle_gattc.cpp Fri Jun 19 15:55:16 2015 +0100
+++ b/btle/btle_gattc.cpp Fri Jun 19 15:55:17 2015 +0100
@@ -51,7 +51,7 @@
DiscoveredService services[BLE_DB_DISCOVERY_MAX_SRV]; /**< Information related to the current service being discovered. This is intended for internal use during service discovery.*/
uint16_t connHandle; /**< Connection handle as provided by the SoftDevice. */
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 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;
bool characteristicDiscoveryInProgress;
@@ -71,7 +71,11 @@
}
void launchCharacteristicDiscovery(Gap::Handle_t connectionHandle, Gap::Handle_t startHandle, Gap::Handle_t endHandle) {
- /* TODO */
+ discoveryStatus.characteristicDiscoveryInProgress = true;
+ discoveryStatus.serviceDiscoveryInProgress = false;
+
+ discoveryStatus.connHandle = connectionHandle;
+ discoveryStatus.currCharInd = 0;
}
void bleGattcEventHandler(const ble_evt_t *p_ble_evt)
