Improve readability with getHandle inline
Fork of BLE_API by
Diff: public/GattCharacteristicWriteCBParams.h
- Revision:
- 257:6be2b4b0cd71
- Parent:
- 255:097be53aea02
--- a/public/GattCharacteristicWriteCBParams.h Tue Dec 02 02:51:52 2014 +0000 +++ b/public/GattCharacteristicWriteCBParams.h Mon Jan 12 14:49:53 2015 -0800 @@ -33,4 +33,20 @@ const uint8_t *data; /**< Incoming data, variable length. */ }; -#endif /*__GATT_CHARACTERISTIC_WRITE_CB_PARAMS_H__*/ +struct GattCharacteristicWriteAuthCBParams { + GattAttribute::Handle_t charHandle; + uint16_t offset; /**< Offset for the write operation. */ + uint16_t len; /**< Length of the incoming data. */ + const uint8_t *data; /**< Incoming data, variable length. */ + bool authorizationReply; /* This is the out parameter which needs to be set to true by the callback if the + * request is to proceed; false otherwise. */ +}; + +struct GattCharacteristicReadAuthCBParams { + GattAttribute::Handle_t charHandle; + uint16_t offset; /**< Offset for the write operation. */ + bool authorizationReply; /* This is the out parameter which needs to be set to true by the callback if the + * request is to proceed; false otherwise. */ +}; + +#endif /*__GATT_CHARACTERISTIC_WRITE_CB_PARAMS_H__*/ \ No newline at end of file