Network.getWifiMACAddress()
Overview
Gets the current WiFi MAC address as hex separated by colons.
Added in version 2.0.0
Format
var address = Network.getWifiMACAddress();
Parameter | Description | Type | Required | Notes |
---|---|---|---|---|
address | A string containing the MAC address of the WiFi adapter. | String | Return | May return undefined or null if unable to determine MAC address. |
Example
Copy
/* Display a toast message of the MAC Address.
*/
var address = Network.getWifiMACAddress();
if(address) {
View.toast('MAC Address: ' + address, true);
}