FreeRTOS: Wi-Fi Management Library
Return to main page ↑
WIFI_GetMAC

Retrieves the Wi-Fi interface's MAC address.

WIFIReturnCode_t WIFI_GetMAC( uint8_t * pucMac );
Parameters
[out]pucMacMAC Address buffer sized 6 bytes.

Example

uint8_t ucMacAddressVal[ wificonfigMAX_BSSID_LEN ];
WIFI_GetMAC( &ucMacAddressVal[0] );
Returns
eWiFiSuccess if the MAC address was successfully retrieved, failure code otherwise. The returned MAC address must be 6 consecutive bytes with no delimitters.