Updated: October 28, 2024 |
Get the SSID for the current Wi-Fi access point
#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_GetConnectedSSID(qwf_Context_t *pCtx, qwf_wifi_Ssid_t *const pSsid)
This function gets the SSID for the currently connected Wi-Fi access point. The caller must provide the memory for the structure that service writes the SSID into. If there's no current access point connection, the SSID will be an empty string.
This data field is also available through the qwf_wifi_GetClientStatus() function.
WIFI_OK Successful result
WIFI_ERR_INACTIVE The QWF Wi-Fi Manager service is inactive or not ready
WIFI_ERR_INT The QWF Wi-Fi Manager service couldn't issue the request or read the response
WIFI_ERR_PARAM A pointer argument is NULL or the QWF Wi-Fi Manager context can't be retrieved