ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the Read attributes payload. More...
#include <ReadAttributesPayload.h>
Public Member Functions | |
ReadAttributesPayload (ZCLFrame *frame) | |
Constructor. | |
void | addReadAttribute (const Attribute &attr) |
Add a Read attribute in the payload. | |
const Attribute * | getReadAttributes (int &size) const |
Get the Read attributes. | |
virtual const byte * | toBytes (int &size) |
Return the ReadAttributes payload as array of bytes. | |
virtual bool | fromBytes (const byte payload[], int length) |
Build a ReadAttributes payload from an array of bytes. |
This Class defines the Read attributes payload.
ReadAttributesPayload::ReadAttributesPayload | ( | ZCLFrame * | frame | ) |
Constructor.
frame | the frame containing this payload. |
void ReadAttributesPayload::addReadAttribute | ( | const Attribute & | attr | ) |
Add a Read attribute in the payload.
attr | the Read attribute. |
virtual bool ReadAttributesPayload::fromBytes | ( | const byte | payload[], |
int | length | ||
) | [virtual] |
Build a ReadAttributes payload from an array of bytes.
payload | the payload as array of bytes. |
length | the array length. |
Implements ZCLPayload.
const Attribute* ReadAttributesPayload::getReadAttributes | ( | int & | size | ) | const |
Get the Read attributes.
[out] | size | the returned array size. |
virtual const byte* ReadAttributesPayload::toBytes | ( | int & | size | ) | [virtual] |
Return the ReadAttributes payload as array of bytes.
[out] | size | the returned array size. |
Implements ZCLPayload.