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: public/GattServer.h
- Revision:
- 134:49321f76753e
- Parent:
- 129:fca6e5ba7d39
- Child:
- 135:6cf6e7bd21c9
diff -r 1f1d7324f5be -r 49321f76753e public/GattServer.h
--- a/public/GattServer.h Fri Nov 21 09:23:23 2014 +0000
+++ b/public/GattServer.h Fri Nov 21 09:23:23 2014 +0000
@@ -17,6 +17,7 @@
#ifndef __GATT_SERVER_H__
#define __GATT_SERVER_H__
+#include "blecommon.h"
#include "GattService.h"
#include "GattServerEvents.h"
#include "GattCharacteristicWriteCBParams.h"
@@ -66,12 +67,6 @@
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);
@@ -105,8 +100,14 @@
}
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;
private:
ServerEventCallbackWithCount_t onDataSent;
