ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the Report attributes payload. More...
#include <ReportAttributesPayload.h>
Public Member Functions | |
ReportAttributesPayload (ZCLFrame *frame) | |
Constructor. | |
void | addReportAttribute (const ReportAttribute &attribute) |
Add a report attributes in this payload. | |
const ReportAttribute * | getReportAttributes (int &size) const |
Get the array of report attributes. | |
virtual const byte * | toBytes (int &size) |
Return the ReportAttributes payload as array of bytes. | |
virtual bool | fromBytes (const byte payload[], int length) |
Build a ReportAttributes payload from an array of bytes. |
This Class defines the Report attributes payload.
ReportAttributesPayload::ReportAttributesPayload | ( | ZCLFrame * | frame | ) |
Constructor.
frame | the frame containing this payload. |
void ReportAttributesPayload::addReportAttribute | ( | const ReportAttribute & | attribute | ) |
Add a report attributes in this payload.
attribute | a report attribute. |
virtual bool ReportAttributesPayload::fromBytes | ( | const byte | payload[], |
int | length | ||
) | [virtual] |
Build a ReportAttributes payload from an array of bytes.
payload | the payload as bytes. |
length | the array length. |
Implements ZCLPayload.
const ReportAttribute* ReportAttributesPayload::getReportAttributes | ( | int & | size | ) | const |
Get the array of report attributes.
[out] | size | : the returned array size. |
virtual const byte* ReportAttributesPayload::toBytes | ( | int & | size | ) | [virtual] |
Return the ReportAttributes payload as array of bytes.
[out] | size | : the returned array size. |
Implements ZCLPayload.