Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
Fork of BLE_API by
Diff: public/GattServer.h
- Revision:
- 128:685897b70e4b
- Parent:
- 127:4e106f4a80b7
- Child:
- 129:fca6e5ba7d39
--- 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;