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

Gets the Wi-Fi mode.

Parameters
[out]pxDeviceMode- return mode Station / Access Point /P2P

Example

WIFIReturnCode_t xWifiStatus;
WIFIDeviceMode_t xDeviceMode;
xWifiStatus = WIFI_GetMode(&xDeviceMode);
if(xWifiStatus == eWiFiSuccess)
{
//device mode is xDeviceMode
}
Returns
eWiFiSuccess if Wi-Fi mode was successfully retrieved, failure code otherwise.