BLE_API_Tiny_BLE
Fork of BLE_API by
Diff: public/GattServer.h
- Revision:
- 328:1fd12f67ed7a
- Parent:
- 301:54c87189e423
- Child:
- 340:c7684a5bc2e1
diff -r 8c645f5694b2 -r 1fd12f67ed7a public/GattServer.h --- a/public/GattServer.h Fri Mar 27 13:03:37 2015 +0000 +++ b/public/GattServer.h Wed Apr 15 09:05:09 2015 +0100 @@ -44,10 +44,10 @@ friend class BLEDevice; private: /* These functions must be defined in the sub-class */ - virtual ble_error_t addService(GattService &) = 0; - virtual ble_error_t readValue(GattAttribute::Handle_t handle, uint8_t buffer[], uint16_t *const lengthP) = 0; - virtual ble_error_t updateValue(GattAttribute::Handle_t, uint8_t[], uint16_t, bool localOnly = false) = 0; - virtual ble_error_t initializeGATTDatabase(void) = 0; + virtual ble_error_t addService(GattService &) = 0; + virtual ble_error_t readValue(GattAttribute::Handle_t attributeHandle, uint8_t buffer[], uint16_t *lengthP) = 0; + virtual ble_error_t updateValue(GattAttribute::Handle_t, const uint8_t[], uint16_t, bool localOnly = false) = 0; + virtual ble_error_t initializeGATTDatabase(void) = 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