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

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

#include <ConfigureReportingPayload.h>

Inheritance diagram for ConfigureReportingPayload:
ZCLPayload

List of all members.

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.

Detailed Description

This Class defines the Configure Reporting payload.


Constructor & Destructor Documentation

ConfigureReportingPayload::ConfigureReportingPayload ( ZCLFrame frame)

Constructor.

Parameters:
framethe frame containing this payload.

Member Function Documentation

void ConfigureReportingPayload::addReportingConfigurationAttribute ( const ReportingConfigurationAttribute attr)

Add a Reporting configuration attribute in the payload.

Parameters:
attra Reporting configuration attribute.
virtual bool ConfigureReportingPayload::fromBytes ( const byte  payload[],
int  length 
) [virtual]

Build a ConfigureReporting payload from an array of bytes.

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

Implements ZCLPayload.

const ReportingConfigurationAttribute* ConfigureReportingPayload::getReportingConfigurationAttributes ( int &  size)

Get the array of Reporting configuration attributes.

Parameters:
[out]sizethe returned array size.
Returns:
the array of Reporting configuration attributes.
virtual const byte* ConfigureReportingPayload::toBytes ( int &  size) [virtual]

Return the ConfigureReporting payload as array of bytes.

Parameters:
sizethe returned array size.
Returns:
the array of bytes.

Implements ZCLPayload.


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