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

This Class defines the Write attributes payload (undivided or not). More...

#include <WriteAttributesPayload.h>

Inheritance diagram for WriteAttributesPayload:
ZCLPayload

List of all members.

Public Member Functions

 WriteAttributesPayload (ZCLFrame *frame)
 Constructor.
void addWriteAttribute (const WriteAttribute &attribute)
 Add a Write attribute in the payload.
const WriteAttributegetWriteAttributes (int &size) const
 Get the Write attributes in the payload.
virtual const byte * toBytes (int &size)
 Return the WriteAttributes payload as array of bytes.
virtual bool fromBytes (const byte payload[], int length)
 Build a WriteAttributes payload from an array of bytes.

Detailed Description

This Class defines the Write attributes payload (undivided or not).


Constructor & Destructor Documentation

WriteAttributesPayload::WriteAttributesPayload ( ZCLFrame frame)

Constructor.

Parameters:
framethe frame containing this payload.

Member Function Documentation

void WriteAttributesPayload::addWriteAttribute ( const WriteAttribute attribute)

Add a Write attribute in the payload.

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

Build a WriteAttributes payload from an array of bytes.

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

Implements ZCLPayload.

const WriteAttribute* WriteAttributesPayload::getWriteAttributes ( int &  size) const

Get the Write attributes in the payload.

Parameters:
[out]sizethe returned array size.
Returns:
an array of Write attributes.
virtual const byte* WriteAttributesPayload::toBytes ( int &  size) [virtual]

Return the WriteAttributes 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: