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

This Class defines the Report attributes payload. More...

#include <ReportAttributesPayload.h>

Inheritance diagram for ReportAttributesPayload:
ZCLPayload

List of all members.

Public Member Functions

 ReportAttributesPayload (ZCLFrame *frame)
 Constructor.
void addReportAttribute (const ReportAttribute &attribute)
 Add a report attributes in this payload.
const ReportAttributegetReportAttributes (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.

Detailed Description

This Class defines the Report attributes payload.


Constructor & Destructor Documentation

ReportAttributesPayload::ReportAttributesPayload ( ZCLFrame frame)

Constructor.

Parameters:
framethe frame containing this payload.

Member Function Documentation

void ReportAttributesPayload::addReportAttribute ( const ReportAttribute attribute)

Add a report attributes in this payload.

Parameters:
attributea report attribute.
virtual bool ReportAttributesPayload::fromBytes ( const byte  payload[],
int  length 
) [virtual]

Build a ReportAttributes payload from an array of bytes.

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

Implements ZCLPayload.

const ReportAttribute* ReportAttributesPayload::getReportAttributes ( int &  size) const

Get the array of report attributes.

Parameters:
[out]size: the returned array size.
Returns:
the array of report attributes.
virtual const byte* ReportAttributesPayload::toBytes ( int &  size) [virtual]

Return the ReportAttributes payload as array of bytes.

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

Implements ZCLPayload.


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