Syntax
uint8_t* macAddress(
    uint8_t* mac
);
ContentsIndex
PreviousUpNext
LWiFiClass::macAddress Method
LWiFiClass Class | Example
Syntax
uint8_t* macAddress(
    uint8_t* mac
);
Description

Gets the interface MAC address.

Returns

The pointer to uint8_t array with length VM_WLAN_LOC_MAC_ADDR_LEN 

which is defined as 6 bytes. 

 

Example
    Serial.begin(115200);
    LWiFi.begin();
    uint8_t macAddress[VM_WLAN_WNDRV_MAC_ADDRESS_LEN] = {0};
    LWiFi.macAddress(macAddress);
    Serial.print("MAC Address is:");
    for(int i = 0; i < VM_WLAN_WNDRV_MAC_ADDRESS_LEN; ++i)
    {
      Serial.print(macAddress[i], HEX);
      Serial.print(":");
    }
    Serial.println();
File

LWiFi.h

Class