52 MACAddress(uint8_t one, uint8_t two, uint8_t three, uint8_t four, uint8_t five, uint8_t six);
66 boolean fromString(
const __FlashStringHelper *macstr);
120 } __attribute__((__packed__));
123 static_assert(
sizeof(
MACAddress) == 6,
"Size is not correct");
MACAddress()
Constructor for a new / all-zero MAC address (00:00:00:00:00:00)
Definition: MACAddress.cpp:5
boolean isIPv6Multicast()
Check if the MAC address is an IPv6 multicast address.
Definition: MACAddress.cpp:61
void println(Print &print=Serial) const
Print a MAC address to a stream with line ending.
Definition: MACAddress.cpp:119
boolean operator!=(const MACAddress &address) const
Check if the address is not equal to another MAC address.
Definition: MACAddress.cpp:45
void print(Print &print=Serial) const
Print a MAC address to a stream as a human readable string.
Definition: MACAddress.cpp:110
uint8_t operator[](int index) const
Get an individual octet from the MAC address.
Definition: MACAddress.cpp:105
void setIPv6Multicast(const uint8_t *address)
Calculate the multicast MAC address for an IPv6 address.
Definition: MACAddress.cpp:51
boolean fromString(const char *macstr)
Parse a human readable MAC address into a MACAddress object.
Definition: MACAddress.cpp:66
Class for the storage and manipulation of 48-bit Ethernet addresses.
Definition: MACAddress.h:15
boolean operator==(const MACAddress &address) const
Check if the address equals another MAC address.
Definition: MACAddress.cpp:40