ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the Configure Reporting response payload. More...
#include <ConfigureReportingResponsePayload.h>
Public Member Functions | |
ConfigureReportingResponsePayload (ZCLFrame *frame) | |
Constructor. | |
bool | isSuccessfulConfiguration () const |
Return true if that is a successful configuration of all attributes. | |
void | setSuccessfulConfiguration (bool success) |
Set to true if that is a successful configuration of all attributes. | |
const ReportingConfigurationAttributeResponse * | getReportingConfigurationAttributeResponses (int &size) const |
Get the array of Reporting Configuration attribute responses. | |
void | addReportingConfigurationAttributeResponse (const ReportingConfigurationAttributeResponse &attr) |
Add a Reporting Configuration attribute response in the payload. | |
virtual const byte * | toBytes (int &size) |
Return the ConfigureReportingResponse as array of bytes. | |
virtual bool | fromBytes (const byte payload[], int length) |
Build a ConfigureReportingResponse payload from an array of bytes. |
This Class defines the Configure Reporting response payload.
ConfigureReportingResponsePayload::ConfigureReportingResponsePayload | ( | ZCLFrame * | frame | ) |
Constructor.
frame | the frame containing this payload. |
void ConfigureReportingResponsePayload::addReportingConfigurationAttributeResponse | ( | const ReportingConfigurationAttributeResponse & | attr | ) |
Add a Reporting Configuration attribute response in the payload.
attr | the Reporting Configuration attribute response. |
virtual bool ConfigureReportingResponsePayload::fromBytes | ( | const byte | payload[], |
int | length | ||
) | [virtual] |
Build a ConfigureReportingResponse payload from an array of bytes.
payload | the payload as bytes. |
length | the array size. |
Implements ZCLPayload.
const ReportingConfigurationAttributeResponse* ConfigureReportingResponsePayload::getReportingConfigurationAttributeResponses | ( | int & | size | ) | const |
Get the array of Reporting Configuration attribute responses.
[out] | size | the returned array size. |
bool ConfigureReportingResponsePayload::isSuccessfulConfiguration | ( | ) | const |
Return true if that is a successful configuration of all attributes.
void ConfigureReportingResponsePayload::setSuccessfulConfiguration | ( | bool | success | ) |
Set to true if that is a successful configuration of all attributes.
success | true if that is a successful configuration of all attributes. |
virtual const byte* ConfigureReportingResponsePayload::toBytes | ( | int & | size | ) | [virtual] |
Return the ConfigureReportingResponse as array of bytes.
[out] | size | the returned array size. |
Implements ZCLPayload.