High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: hw/GattServer.h
- Revision:
- 75:d08bdef22500
- Parent:
- 64:95529f47b782
- Child:
- 77:1436ecf09583
diff -r 301042c34cb8 -r d08bdef22500 hw/GattServer.h --- a/hw/GattServer.h Fri Jun 06 11:30:56 2014 +0100 +++ b/hw/GattServer.h Fri Jun 06 14:14:46 2014 +0100 @@ -34,12 +34,8 @@ public: /* These functions must be defined in the sub-class */ virtual ble_error_t addService(GattService &) = 0; - virtual ble_error_t readValue(uint16_t, uint8_t[], - uint16_t) = 0; - virtual ble_error_t updateValue(uint16_t, - uint8_t[], - uint16_t, - bool localOnly = false) = 0; + virtual ble_error_t readValue(uint16_t, uint8_t[], uint16_t) = 0; + virtual ble_error_t updateValue(uint16_t, uint8_t[], uint16_t, bool localOnly = false) = 0; // ToDo: For updateValue, check the CCCD to see if the value we are // updating has the notify or indicate bits sent, and if BOTH are set @@ -95,14 +91,7 @@ } protected: - GattServer() : - serviceCount(0), - characteristicCount(0), - onDataSent(NULL), - onDataWritten(NULL), - onUpdatesEnabled(NULL), - onUpdatesDisabled(NULL), - onConfirmationReceived(NULL) { + GattServer() : serviceCount(0), characteristicCount(0), onDataSent(NULL), onDataWritten(NULL), onUpdatesEnabled(NULL), onUpdatesDisabled(NULL), onConfirmationReceived(NULL) { /* empty */ }