qwf_wifi_GetConnectedSSID()

Get the SSID for the current Wi-Fi access point

Synopsis:

#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_GetConnectedSSID(qwf_Context_t *pCtx,
                                           qwf_wifi_Ssid_t *const pSsid);

Arguments:

pCtx
A pointer to the QWF service context created by qwf_Init()
pSsid
A pointer to a qwf_wifi_Ssid_t structure for storing the SSID

Library:

qwf_interface

Description:

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.

Returns:

WIFI_OK Successful result

WIFI_ERR_PARAM A pointer argument is NULL or the QWF Wi-Fi Manager context can't be retrieved