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

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

#include <DiscoverAttributesPayload.h>

Inheritance diagram for DiscoverAttributesPayload:
ZCLPayload

List of all members.

Public Member Functions

 DiscoverAttributesPayload (ZCLFrame *frame)
 Constructor.
dbyte getStartAttributeId ()
 Get the start attribute identifier specifies the value of the identifier at which to begin the attribute discovery.
byte getMaxAttrIdentifiers ()
 Get the maximum attribute identifiers specifies the maximum number of attribute identifiers that are to be returned in the resulting discover attributes response command.
void setStartAttributeId (dbyte attrId)
 Set the start attribute identifier specifies the value of the identifier at which to begin the attribute discovery.
void setMaxAttrIdentifiers (byte max)
 Get the maximum attribute identifiers specifies the maximum number of attribute identifiers that are to be returned in the resulting discover attributes response command.
virtual const byte * toBytes (int &size)
 Return the DiscoverAttributesPayload as array of bytes.
virtual bool fromBytes (const byte payload[], int length)
 Build a DiscoverAttributesPayload from an array of bytes.

Detailed Description

This Class defines the Discover attributes payload.


Constructor & Destructor Documentation

DiscoverAttributesPayload::DiscoverAttributesPayload ( ZCLFrame frame)

Constructor.

Parameters:
framethe frame containing this payload.

Member Function Documentation

virtual bool DiscoverAttributesPayload::fromBytes ( const byte  payload[],
int  length 
) [virtual]

Build a DiscoverAttributesPayload from an array of bytes.

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

Implements ZCLPayload.

byte DiscoverAttributesPayload::getMaxAttrIdentifiers ( )

Get the maximum attribute identifiers specifies the maximum number of attribute identifiers that are to be returned in the resulting discover attributes response command.

Returns:
the maximum attribute identifiers.
dbyte DiscoverAttributesPayload::getStartAttributeId ( )

Get the start attribute identifier specifies the value of the identifier at which to begin the attribute discovery.

Returns:
the start attribute identifier.
void DiscoverAttributesPayload::setMaxAttrIdentifiers ( byte  max)

Get the maximum attribute identifiers specifies the maximum number of attribute identifiers that are to be returned in the resulting discover attributes response command.

Parameters:
maxthe maximum attribute identifiers.
void DiscoverAttributesPayload::setStartAttributeId ( dbyte  attrId)

Set the start attribute identifier specifies the value of the identifier at which to begin the attribute discovery.

Parameters:
attrIdthe start attribute identifier.
virtual const byte* DiscoverAttributesPayload::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: