Represents MAC address
- isBroadcast: bool
-
TRUEif is broadcst address
- isMulticast: bool
-
TRUEif multicast address
- isValid: bool
-
TRUEif is valid MAC address
- equals(mac): bool
-
Compares two MAC addresses
Table 1. Parameters mac
MAC address to compare to
ReturnTRUEif MAC addresses are equal
- toString(notation): String
-
Returns MAC address string representation
Table 2. Parameters notation
Constant
Optional. Notation of MAC address, one of MAC address notation options.
MacAddressNotation::COLON_SEPARATEDwill be used by default if this parameter is not provided.ReturnMAC address as a string
MacAddress(mac)-
Creates new MAC address object.
mac |
String |
Optional. String represenation of MAC address to parse to object |
MacAddress object
| Constant | Description |
|---|---|
MacAddressNotation::FLAT_STRING |
Without separator, e.g. |
MacAddressNotation::COLON_SEPARATED |
Separated by colon, e.g. |
MacAddressNotation::BYTEPAIR_COLON_SEPARATED |
Bytepairs separated by colon, e.g. |
MacAddressNotation::HYPHEN_SEPARATED |
Separated by hyphen, e.g. |
MacAddressNotation::DOT_SEPARATED |
Separated by dot, e.g. |
MacAddressNotation::BYTEPAIR_DOT_SEPARATED |
Bytepairs separated by dot, e.g. |
MacAddressNotation::DECIMAL_DOT_SEPARATED |
Decimal, separated by dot, e.g. |