Lancaster University's fork of the mbed BLE API. Lives on github, https://github.com/lancaster-university/BLE_API
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: ble/ServiceDiscovery.h
- Revision:
- 1131:73c11a85c6d6
- Parent:
- 1084:40c1e518d6de
- Child:
- 1137:290d499dd0e8
--- a/ble/ServiceDiscovery.h Tue Jan 12 19:47:52 2016 +0000 +++ b/ble/ServiceDiscovery.h Wed Apr 06 18:40:26 2016 +0100 @@ -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 reset its - * state and not the data held in ServiceDiscovery members. This shall be - * achieved by a call to ServiceDiscovery::reset() from the sub-class' - * reset() implementation. - * - * @return BLE_ERROR_NONE on success. - */ - virtual ble_error_t reset(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;