ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the Cluster Specific Command attribute. More...
#include <ClusterSpecCmdAttribute.h>
Public Member Functions | |
dbyte | getIdentifier () const |
Get the identifier of this attribute (WARNING : not defined for ClusterSpecCmdAttribute). | |
void | setIdentifier (dbyte attrId) |
Set the identifier of this attribute. | |
byte | getCommand () const |
Get the command of the cluster specific command attribute. | |
void | setCommand (byte cmd) |
Set the command of the Cluster Specific Command attribute. | |
int | getPosition () const |
Get the position of this attribute in the command (1 to n). | |
void | setPosition (int position) |
Set the position of this attribute in the command (1 to n). | |
void | setDataAsNumber (long value) |
Set the data as a number of this attribute. | |
void | setDataAs64bitsNumber (long long value) |
Set the data as a number of this attribute. | |
void | setDataAsString (const char *value) |
Set the data as a String of this attribute. | |
void | setDataAsBoolean (bool value) |
Set the data as a boolean of this attribute. | |
void | setDataAsFloat (float value) |
Set the data as a float of this attribute. | |
void | setDataAsDouble (double value) |
Set the data as a double of this attribute. | |
virtual const byte * | toBytes (int &size) |
Return this attribute as array of bytes. |
This Class defines the Cluster Specific Command attribute.
byte ClusterSpecCmdAttribute::getCommand | ( | ) | const |
Get the command of the cluster specific command attribute.
dbyte ClusterSpecCmdAttribute::getIdentifier | ( | ) | const |
Get the identifier of this attribute (WARNING : not defined for ClusterSpecCmdAttribute).
Reimplemented from Attribute.
int ClusterSpecCmdAttribute::getPosition | ( | ) | const |
Get the position of this attribute in the command (1 to n).
void ClusterSpecCmdAttribute::setCommand | ( | byte | cmd | ) |
Set the command of the Cluster Specific Command attribute.
cmd | the command. |
void ClusterSpecCmdAttribute::setDataAs64bitsNumber | ( | long long | value | ) |
Set the data as a number of this attribute.
Warning: the DataType must be set before and must be equal to
value | the data as a number. |
void ClusterSpecCmdAttribute::setDataAsBoolean | ( | bool | value | ) |
Set the data as a boolean of this attribute.
Warning: the DataType must be set before and must be equal to
value | the data as a boolean. |
void ClusterSpecCmdAttribute::setDataAsDouble | ( | double | value | ) |
Set the data as a double of this attribute.
Warning: the DataType must be set before and must be equal to
value | the data as a double. |
void ClusterSpecCmdAttribute::setDataAsFloat | ( | float | value | ) |
Set the data as a float of this attribute.
Warning: the DataType must be set before and must be equal to
value | the data as a float. |
void ClusterSpecCmdAttribute::setDataAsNumber | ( | long | value | ) |
Set the data as a number of this attribute.
Warning: the DataType must be set before and must be equal to
value | the data as a number. |
void ClusterSpecCmdAttribute::setDataAsString | ( | const char * | value | ) |
Set the data as a String of this attribute.
Warning: the DataType must be set before and must be equal to
value | the data as a string. |
void ClusterSpecCmdAttribute::setIdentifier | ( | dbyte | attrId | ) |
Set the identifier of this attribute.
(WARNING : not defined for ClusterSpecCmdAttribute).
attrId | the attribute identifier. |
Reimplemented from Attribute.
void ClusterSpecCmdAttribute::setPosition | ( | int | position | ) |
Set the position of this attribute in the command (1 to n).
position |
virtual const byte* ClusterSpecCmdAttribute::toBytes | ( | int & | size | ) | [virtual] |
Return this attribute as array of bytes.
[out] | size | : the returned array size. |
Reimplemented from ReportAttribute.