ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the Discover attributes payload. More...
#include <DiscoverAttributesPayload.h>
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. |
This Class defines the Discover attributes payload.
DiscoverAttributesPayload::DiscoverAttributesPayload | ( | ZCLFrame * | frame | ) |
Constructor.
frame | the frame containing this payload. |
virtual bool DiscoverAttributesPayload::fromBytes | ( | const byte | payload[], |
int | length | ||
) | [virtual] |
Build a DiscoverAttributesPayload from an array of bytes.
payload | the payload as bytes. |
length | the array length. |
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.
dbyte DiscoverAttributesPayload::getStartAttributeId | ( | ) |
Get the start attribute identifier specifies the value of the identifier at which to begin the attribute discovery.
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.
max | the 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.
attrId | the start attribute identifier. |
virtual const byte* DiscoverAttributesPayload::toBytes | ( | int & | size | ) | [virtual] |
Return the DiscoverAttributesPayload as array of bytes.
[out] | size | the returned array size. |
Implements ZCLPayload.