NetBurner 3.1
m2m_wifi_get_otp_mac_address

Functions

NMI_API sint8 m2m_wifi_get_otp_mac_address (uint8 *pu8MacAddr, uint8 *pu8IsValid)
 

Detailed Description

Request the MAC address stored on the OTP (one time programmable) memory of the device. The function is blocking until the response is received.

Function Documentation

◆ m2m_wifi_get_otp_mac_address()

NMI_API sint8 m2m_wifi_get_otp_mac_address ( uint8 pu8MacAddr,
uint8 pu8IsValid 
)
Parameters
[out]pu8MacAddrOutput MAC address buffer of 6 bytes size. Valid only if *pu8Valid=1.
[out]pu8IsValidA output boolean value to indicate the validity of pu8MacAddr in OTP. Output zero if the OTP memory is not programmed, non-zero otherwise.
Precondition
m2m_wifi_init required to call any WIFI/socket function
See also
m2m_wifi_get_mac_address
Returns
The function returns M2M_SUCCESS for success and a negative value otherwise.