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.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: ble/ServiceDiscovery.h
- Revision:
- 1063:187f9929cb60
- Parent:
- 1062:a3fd424b73ca
- Child:
- 1074:1fedc77d9add
diff -r a3fd424b73ca -r 187f9929cb60 ble/ServiceDiscovery.h
--- a/ble/ServiceDiscovery.h Mon Jan 11 08:51:37 2016 +0000
+++ b/ble/ServiceDiscovery.h Mon Jan 11 08:51:37 2016 +0000
@@ -132,27 +132,6 @@
*/
virtual void onTermination(TerminationCallback_t callback) = 0;
- /**
- * Clear all ServiceDiscovery state of the associated object.
- *
- * This function is meant to be overridden in the platform-specific
- * sub-class. Nevertheless, the sub-class is only expected to clean up its
- * state and not the data held in ServiceDiscovery members. This shall be
- * achieved by a call to ServiceDiscovery::cleanup() from the sub-class'
- * cleanup() implementation.
- *
- * @return BLE_ERROR_NONE on success.
- */
- virtual ble_error_t cleanup(void) {
- connHandle = 0;
- matchingServiceUUID = UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN);
- serviceCallback = NULL;
- matchingCharacteristicUUID = UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN);
- characteristicCallback = NULL;
-
- return BLE_ERROR_NONE;
- }
-
protected:
Gap::Handle_t connHandle; /**< Connection handle as provided by the SoftDevice. */
UUID matchingServiceUUID;
