Updated
Fork of BLE_API by
Diff: ble/GattServer.h
- Revision:
- 1075:0d0dafb54bc9
- Parent:
- 1074:1fedc77d9add
- Child:
- 1082:127667021827
diff -r 1fedc77d9add -r 0d0dafb54bc9 ble/GattServer.h --- a/ble/GattServer.h Mon Jan 11 08:51:42 2016 +0000 +++ b/ble/GattServer.h Mon Jan 11 08:51:43 2016 +0000 @@ -396,32 +396,6 @@ dataSentCallChain.call(count); } -public: - /** - * Clear all GattServer 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 GattServer members. This shall be achieved - * by a call to GattServer::reset() from the sub-class' reset() - * implementation. - * - * @return BLE_ERROR_NONE on success. - */ - virtual ble_error_t reset(void) { - serviceCount = 0; - characteristicCount = 0; - - dataSentCallChain.clear(); - dataWrittenCallChain.clear(); - dataReadCallChain.clear(); - updatesEnabledCallback = NULL; - updatesDisabledCallback = NULL; - confirmationReceivedCallback = NULL; - - return BLE_ERROR_NONE; - } - protected: uint8_t serviceCount; uint8_t characteristicCount;