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