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: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate BLE_ANCS_SDAPI_IRC ... more
Diff: public/GattServer.h
- Revision:
- 128:685897b70e4b
- Parent:
- 127:4e106f4a80b7
- Child:
- 129:fca6e5ba7d39
diff -r 4e106f4a80b7 -r 685897b70e4b public/GattServer.h
--- a/public/GattServer.h Fri Nov 21 09:23:22 2014 +0000
+++ b/public/GattServer.h Fri Nov 21 09:23:22 2014 +0000
@@ -66,6 +66,12 @@
onConfirmationReceived = callback;
}
+protected:
+ GattServer() : serviceCount(0), characteristicCount(0), onDataSent(NULL), onDataWritten(), onUpdatesEnabled(NULL), onUpdatesDisabled(NULL), onConfirmationReceived(NULL) {
+ /* empty */
+ }
+
+protected:
void handleDataWrittenEvent(const GattCharacteristicWriteCBParams *params) {
if (onDataWritten.hasCallbacksAttached()) {
onDataWritten.call(params);
@@ -99,11 +105,6 @@
}
protected:
- GattServer() : serviceCount(0), characteristicCount(0), onDataSent(NULL), onDataWritten(), onUpdatesEnabled(NULL), onUpdatesDisabled(NULL), onConfirmationReceived(NULL) {
- /* empty */
- }
-
-protected:
uint8_t serviceCount;
uint8_t characteristicCount;
uint8_t descriptorCount;