Bike service
Fork of BLE_API by
Diff: public/GattClient.h
- Revision:
- 512:0584e40bece2
- Parent:
- 511:9f5046c0f741
--- a/public/GattClient.h Fri Jun 19 15:52:04 2015 +0100 +++ b/public/GattClient.h Fri Jun 19 15:52:05 2015 +0100 @@ -28,12 +28,8 @@ typedef void (*ReadCallback_t)(const GattReadCallbackParams *params); enum WriteOp_t { - GATT_OP_INVALID = 0x00, /**< Invalid Operation. */ GATT_OP_WRITE_REQ = 0x01, /**< Write Request. */ GATT_OP_WRITE_CMD = 0x02, /**< Write Command. */ - GATT_OP_SIGN_WRITE_CMD = 0x03, /**< Signed Write Command. */ - GATT_OP_PREP_WRITE_REQ = 0x04, /**< Prepare Write Request. */ - GATT_OP_EXEC_WRITE_REQ = 0x05, /**< Execute Write Request. */ }; typedef void (*WriteCallback_t)(const GattWriteCallbackParams *params); @@ -88,7 +84,7 @@ /* Initiate a Gatt Client read procedure by attribute-handle.*/ virtual ble_error_t read(Gap::Handle_t connHandle, GattAttribute::Handle_t attributeHandle, uint16_t offset) const = 0; - virtual ble_error_t write(GattClient::WriteOp_t cmd, Gap::Handle_t connHandle, size_t length, const uint8_t *value) const = 0; + virtual ble_error_t write(GattClient::WriteOp_t cmd, Gap::Handle_t connHandle, GattAttribute::Handle_t attributeHandle, size_t length, const uint8_t *value) const = 0; #if 0 public: