ZCL library  4.3
ZCL library to manage a Zigbee network
ConfigureReportingResponsePayload Class Reference

This Class defines the Configure Reporting response payload. More...

#include <ConfigureReportingResponsePayload.h>

Inheritance diagram for ConfigureReportingResponsePayload:
ZCLPayload

List of all members.

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.

Detailed Description

This Class defines the Configure Reporting response payload.


Constructor & Destructor Documentation

ConfigureReportingResponsePayload::ConfigureReportingResponsePayload ( ZCLFrame frame)

Constructor.

Parameters:
framethe frame containing this payload.

Member Function Documentation

void ConfigureReportingResponsePayload::addReportingConfigurationAttributeResponse ( const ReportingConfigurationAttributeResponse attr)

Add a Reporting Configuration attribute response in the payload.

Parameters:
attrthe Reporting Configuration attribute response.
virtual bool ConfigureReportingResponsePayload::fromBytes ( const byte  payload[],
int  length 
) [virtual]

Build a ConfigureReportingResponse payload from an array of bytes.

Parameters:
payloadthe payload as bytes.
lengththe array size.
Returns:
true if success, otherwise false.

Implements ZCLPayload.

const ReportingConfigurationAttributeResponse* ConfigureReportingResponsePayload::getReportingConfigurationAttributeResponses ( int &  size) const

Get the array of Reporting Configuration attribute responses.

Parameters:
[out]sizethe returned array size.
Returns:
the array of Reporting Configuration attributes responses.
bool ConfigureReportingResponsePayload::isSuccessfulConfiguration ( ) const

Return true if that is a successful configuration of all attributes.

Returns:
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.

Parameters:
successtrue if that is a successful configuration of all attributes.
virtual const byte* ConfigureReportingResponsePayload::toBytes ( int &  size) [virtual]

Return the ConfigureReportingResponse as array of bytes.

Parameters:
[out]sizethe returned array size.
Returns:
the array of bytes.

Implements ZCLPayload.


The documentation for this class was generated from the following file: