ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the Read attribute. More...
#include <ReadAttribute.h>
Public Member Functions | |
const byte * | getData (int &size) const |
Get the data of this attribute. | |
bool | getDataAsBoolean () const |
Get the data as a boolean. | |
const char * | getDataAsString () const |
Get the data as a string. | |
std::string | getDataAsUTF8String () const |
Get the data as a UTF-8 string. | |
long | getDataAsNumber () const |
Get the data as a number. | |
long long | getDataAs64bitsNumber () const |
Get the data as a 64 bits number. | |
float | getDataAsFloat () const |
Get the data as a float. | |
double | getDataAsDouble () const |
Get the data as a double. | |
virtual const byte * | toBytes (int &size) |
Return the attribute as array of bytes. |
This Class defines the Read attribute.
const byte* ReadAttribute::getData | ( | int & | size | ) | const |
Get the data of this attribute.
[out] | size | the returned data array size. |
long long ReadAttribute::getDataAs64bitsNumber | ( | ) | const |
Get the data as a 64 bits number.
the DataType of this attribute must be equal to
bool ReadAttribute::getDataAsBoolean | ( | ) | const |
Get the data as a boolean.
the DataType of this attribute must be equal to
double ReadAttribute::getDataAsDouble | ( | ) | const |
Get the data as a double.
the DataType of this attribute must be equal to
float ReadAttribute::getDataAsFloat | ( | ) | const |
Get the data as a float.
the DataType of this attribute must be equal to
long ReadAttribute::getDataAsNumber | ( | ) | const |
Get the data as a number.
the DataType of this attribute must be equal to
const char* ReadAttribute::getDataAsString | ( | ) | const |
Get the data as a string.
the DataType of this attribute must be equal to
std::string ReadAttribute::getDataAsUTF8String | ( | ) | const |
Get the data as a UTF-8 string.
the DataType of this attribute must be equal to
virtual const byte* ReadAttribute::toBytes | ( | int & | size | ) | [virtual] |
Return the attribute as array of bytes.
[out] | size | the returned array size. |
Reimplemented from DiscoveredAttribute.
Reimplemented in ClusterSpecCmdAttribute, WriteAttribute, ReadAttributeResponse, and ReportAttribute.