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

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

#include <ReadAttributesPayload.h>

Inheritance diagram for ReadAttributesPayload:
ZCLPayload

List of all members.

Public Member Functions

 ReadAttributesPayload (ZCLFrame *frame)
 Constructor.
void addReadAttribute (const Attribute &attr)
 Add a Read attribute in the payload.
const AttributegetReadAttributes (int &size) const
 Get the Read attributes.
virtual const byte * toBytes (int &size)
 Return the ReadAttributes payload as array of bytes.
virtual bool fromBytes (const byte payload[], int length)
 Build a ReadAttributes payload from an array of bytes.

Detailed Description

This Class defines the Read attributes payload.


Constructor & Destructor Documentation

ReadAttributesPayload::ReadAttributesPayload ( ZCLFrame frame)

Constructor.

Parameters:
framethe frame containing this payload.

Member Function Documentation

void ReadAttributesPayload::addReadAttribute ( const Attribute attr)

Add a Read attribute in the payload.

Parameters:
attrthe Read attribute.
virtual bool ReadAttributesPayload::fromBytes ( const byte  payload[],
int  length 
) [virtual]

Build a ReadAttributes payload from an array of bytes.

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

Implements ZCLPayload.

const Attribute* ReadAttributesPayload::getReadAttributes ( int &  size) const

Get the Read attributes.

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

Return the ReadAttributes payload 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: