Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
m2m_wifi_get_mac_address

Function to retrieve the current MAC address.

The function is blocking until the response is received.

Functions

NMI_API sint8 m2m_wifi_get_mac_address (uint8 *pu8MacAddr0, uint8 *pu8MacAddr1)
 Request the current MAC addresses of the device (the working mac addresses). (the function is Blocking until response received) More...
 

NMI_API sint8 m2m_wifi_get_mac_address ( uint8 pu8MacAddr0,
uint8 pu8MacAddr1 
)

Request the current MAC addresses of the device (the working mac addresses). (the function is Blocking until response received)

Parameters
[out]pu8MacAddr0Output MAC address buffer of 6 bytes size for AP interface. pu8MacAddr1 Output MAC address buffer of 6 bytes size for STA interface.
Returns
The function shall return M2M_SUCCESS for success and a negative value otherwise.
See Also
m2m_wifi_get_otp_mac_address
Precondition
m2m_wifi_init required to call any WIFI/socket function
Parameters
[out]pu8MacAddr0Output MAC address buffer of 6 bytes size for AP interface. pu8MacAddr1 Output MAC address buffer of 6 bytes size for STA interface
Precondition
m2m_wifi_init required to call any WIFI/socket function
See Also
m2m_wifi_get_otp_mac_address
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

References hif_chip_sleep(), hif_chip_wake(), m2m_memcpy(), M2M_SUCCESS, and nmi_get_mac_address().

Referenced by app_wifi_init(), main(), os_m2m_wifi_get_mac_address_imp(), wifi_cb(), wilc_netif_low_level_init(), and winc_netif_low_level_init().