ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the Discover attributes response payload. More...
#include <DiscoverAttributesResponsePayload.h>
Public Member Functions | |
DiscoverAttributesResponsePayload (ZCLFrame *frame) | |
Constructor. | |
bool | isDiscoveyComplete () const |
Return true if there are no more attributes to be discovered. | |
void | setDiscoveyComplete (bool complete) |
Set to true if there are no more attributes to be discovered. | |
const DiscoveredAttribute * | getDiscoveredAttributes (int &size) const |
Get the array of discovered attributes. | |
void | addDiscoveredAttributes (const DiscoveredAttribute &attribute) |
Add a discovered attribute in the payload. | |
virtual const byte * | toBytes (int &size) |
Return the DiscoverAttributesPayload as array of bytes. | |
virtual bool | fromBytes (const byte payload[], int length) |
Build a DiscoverAttributesResponse payload from an array of bytes. |
This Class defines the Discover attributes response payload.
DiscoverAttributesResponsePayload::DiscoverAttributesResponsePayload | ( | ZCLFrame * | frame | ) |
Constructor.
frame | the frame containing this payload. |
void DiscoverAttributesResponsePayload::addDiscoveredAttributes | ( | const DiscoveredAttribute & | attribute | ) |
Add a discovered attribute in the payload.
attribute | the discovered attribute. |
virtual bool DiscoverAttributesResponsePayload::fromBytes | ( | const byte | payload[], |
int | length | ||
) | [virtual] |
Build a DiscoverAttributesResponse payload from an array of bytes.
payload | the payload as bytes. |
length | the array length. |
Implements ZCLPayload.
const DiscoveredAttribute* DiscoverAttributesResponsePayload::getDiscoveredAttributes | ( | int & | size | ) | const |
Get the array of discovered attributes.
[out] | size | the returned array size. |
bool DiscoverAttributesResponsePayload::isDiscoveyComplete | ( | ) | const |
Return true if there are no more attributes to be discovered.
In other case, to obtain the rest of the attribute, the start attribute identifier specified in the next attribute discovery request command should be set equal to one plus the last attribute identifier received in the discover attributes response command.
void DiscoverAttributesResponsePayload::setDiscoveyComplete | ( | bool | complete | ) |
Set to true if there are no more attributes to be discovered.
complete | true if there are no more attributes to be discovered. |
virtual const byte* DiscoverAttributesResponsePayload::toBytes | ( | int & | size | ) | [virtual] |
Return the DiscoverAttributesPayload as array of bytes.
[out] | size | the returned array size. |
Implements ZCLPayload.