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