fork BLE_API to add update adv payload API
Fork of BLE_API by
Diff: public/GattClient.h
- Revision:
- 501:ff6801633d2c
- Parent:
- 497:926d444599e8
- Child:
- 503:4e69a47047c5
--- a/public/GattClient.h Fri Jun 19 15:52:03 2015 +0100 +++ b/public/GattClient.h Fri Jun 19 15:52:03 2015 +0100 @@ -28,6 +28,14 @@ OP_WRITE_CMD }; + struct ReadResponse_t { + GattAttribute::Handle_t handle; /**< Attribute Handle. */ + uint16_t offset; /**< Offset of the attribute data. */ + uint16_t len; /**< Attribute data length. */ + const uint8_t *data; /**< Attribute data, variable length. */ + }; + typedef void (*ReadCallback_t)(const ReadResponse_t *params); + public: /** * Launch service discovery. Once launched, service discovery will remain