ZCL library
4.3
ZCL library to manage a Zigbee network
|
This class defines the IEEE address. More...
#include <ZIEEEAddress.h>
Public Member Functions | |
ZIEEEAddress () | |
Constructor. | |
ZIEEEAddress (byte addr[IEEE_ADDR_LEN]) | |
Constructor from an array of bytes. | |
ZIEEEAddress (const byte addr[IEEE_ADDR_LEN]) | |
Constructor from an array of bytes. | |
ZIEEEAddress (const std::string &ieeeAddr) | |
Constructor from a String. | |
ZIEEEAddress (const ZIEEEAddress &other) | |
Redefinition of the copy-Constructor. | |
virtual | ~ZIEEEAddress () |
Destructor. | |
ZIEEEAddress & | operator= (const ZIEEEAddress &other) |
Redefinition of the affectation Operator. | |
bool | isValid () const |
Return true if this IEEE address is valid (i.e. | |
bool | equals (const ZIEEEAddress &addr) const |
Return true if the IEEE address passed as parameter is equal to this one. | |
const byte * | toBytes () const |
Return this IEEE address as an array of bytes. | |
std::string | toSmallString () const |
Return this IEEE address as a String AABBCCDDEEFFGGHH. | |
std::string | toString () const |
Return this IEEE address as a String AA-BB-CC-DD-EE-FF-GG-HH. | |
Static Public Attributes | |
static byte | NULL_ADDR [IEEE_ADDR_LEN] |
Constant to define a Null IEEE address = 00-00-00-00-00-00-00-00. | |
static byte | INVALID_ADDR [IEEE_ADDR_LEN] |
Constant to define an Unknown IEEE address = FF-FF-FF-FF-FF-FF-FF-FF. | |
Related Functions | |
(Note that these are not member functions.) | |
#define | IEEE_ADDR_LEN 8 |
This class defines the IEEE address.
ZIEEEAddress::ZIEEEAddress | ( | byte | addr[IEEE_ADDR_LEN] | ) |
Constructor from an array of bytes.
addr | the IEEE address as array of bytes. |
ZIEEEAddress::ZIEEEAddress | ( | const byte | addr[IEEE_ADDR_LEN] | ) |
Constructor from an array of bytes.
addr | the IEEE address as array of bytes. |
ZIEEEAddress::ZIEEEAddress | ( | const std::string & | ieeeAddr | ) | [explicit] |
Constructor from a String.
String format of IEEE address is either 10-00-00-50-C2-36-6B-11 or 10000050C2366B11
ieeeAddr | the IEEE address as String. |
bool ZIEEEAddress::equals | ( | const ZIEEEAddress & | addr | ) | const |
Return true if the IEEE address passed as parameter is equal to this one.
addr | the IEEE address to be compared. |
bool ZIEEEAddress::isValid | ( | ) | const |
Return true if this IEEE address is valid (i.e.
not equals to NULL_ADDR or INVALID_ADDR).
const byte* ZIEEEAddress::toBytes | ( | ) | const |
Return this IEEE address as an array of bytes.
std::string ZIEEEAddress::toSmallString | ( | ) | const |
Return this IEEE address as a String AABBCCDDEEFFGGHH.
std::string ZIEEEAddress::toString | ( | ) | const |
Return this IEEE address as a String AA-BB-CC-DD-EE-FF-GG-HH.
#define IEEE_ADDR_LEN 8 [related] |
the size in bytes of IEEE address.