ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the Read attributes response payload. More...
#include <ReadAttributesResponsePayload.h>
Public Member Functions | |
ReadAttributesResponsePayload (ZCLFrame *frame) | |
Constructor. | |
void | addReadAttributeResponse (const ReadAttributeResponse &attribute) |
Add a read attribute response. | |
const ReadAttributeResponse * | getReadAttributeResponses (int &size) const |
Get the array of read attribute responses. | |
virtual const byte * | toBytes (int &size) |
Return the DiscoverAttributesPayload as array of bytes. | |
virtual bool | fromBytes (const byte payload[], int length) |
Build a ReadAttributeResponse payload from an array of bytes. |
This Class defines the Read attributes response payload.
ReadAttributesResponsePayload::ReadAttributesResponsePayload | ( | ZCLFrame * | frame | ) |
Constructor.
frame | the frame containing this payload. |
void ReadAttributesResponsePayload::addReadAttributeResponse | ( | const ReadAttributeResponse & | attribute | ) |
Add a read attribute response.
attribute | the read attribute response. |
virtual bool ReadAttributesResponsePayload::fromBytes | ( | const byte | payload[], |
int | length | ||
) | [virtual] |
Build a ReadAttributeResponse payload from an array of bytes.
payload | the payload as bytes. |
length | the array length. |
Implements ZCLPayload.
const ReadAttributeResponse* ReadAttributesResponsePayload::getReadAttributeResponses | ( | int & | size | ) | const |
Get the array of read attribute responses.
[out] | size | the returned array size. |
virtual const byte* ReadAttributesResponsePayload::toBytes | ( | int & | size | ) | [virtual] |
Return the DiscoverAttributesPayload as array of bytes.
[out] | size | the returned array size. |
Implements ZCLPayload.