Local layer address container for MAC address.
More...
#include <local_addr_mac.hpp>
|
|
std::vector< uint8_t > | addr |
| | Internal address representation.
|
| |
|
std::string | str |
| | Printable string (also used in MQTT topic)
|
| |
Local layer address container for MAC address.
MAC as addess type is very common, so implement everything here.
Definition at line 24 of file local_addr_mac.hpp.
◆ LocalAddrMAC()
| SPSP::LocalAddrMAC::LocalAddrMAC |
( |
const uint8_t * |
mac = nullptr | ) |
|
Constructs a new object.
- Parameters
-
| mac | MAC address (00:00:00:00:00:00 is assumed if nullptr) |
◆ broadcast()
Constructs a new object from broadcast MAC address.
- Returns
- New
LocalAddrMAC object
◆ local()
Constructs a new object from MAC address of this node.
- Returns
- New
LocalAddrMAC object
◆ toMAC()
| void SPSP::LocalAddrMAC::toMAC |
( |
uint8_t * |
mac | ) |
const |
Converts LocalAddrMAC to MAC itself.
- Parameters
-
| mac | MAC address storage pointer |
◆ zeroes()
Constructs a new object from 00:00:00:00:00:00 MAC address.
- Returns
- New
LocalAddrMAC object
The documentation for this struct was generated from the following file: