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

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

#include <ReadAttributesResponsePayload.h>

Inheritance diagram for ReadAttributesResponsePayload:
ZCLPayload

List of all members.

Public Member Functions

 ReadAttributesResponsePayload (ZCLFrame *frame)
 Constructor.
void addReadAttributeResponse (const ReadAttributeResponse &attribute)
 Add a read attribute response.
const ReadAttributeResponsegetReadAttributeResponses (int &size) const
 Get the array of read attribute responses.
virtual const byte * toBytes (int &size)
 Return the DiscoverAttributesPayload as array of bytes.
virtual bool fromBytes (const byte payload[], int length)
 Build a ReadAttributeResponse payload from an array of bytes.

Detailed Description

This Class defines the Read attributes response payload.


Constructor & Destructor Documentation

ReadAttributesResponsePayload::ReadAttributesResponsePayload ( ZCLFrame frame)

Constructor.

Parameters:
framethe frame containing this payload.

Member Function Documentation

void ReadAttributesResponsePayload::addReadAttributeResponse ( const ReadAttributeResponse attribute)

Add a read attribute response.

Parameters:
attributethe read attribute response.
virtual bool ReadAttributesResponsePayload::fromBytes ( const byte  payload[],
int  length 
) [virtual]

Build a ReadAttributeResponse payload from an array of bytes.

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

Implements ZCLPayload.

const ReadAttributeResponse* ReadAttributesResponsePayload::getReadAttributeResponses ( int &  size) const

Get the array of read attribute responses.

Parameters:
[out]sizethe returned array size.
Returns:
the array of read attribute responses.
virtual const byte* ReadAttributesResponsePayload::toBytes ( int &  size) [virtual]

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