Updated: October 28, 2024 |
Get the ID of the Saved Network profile used in the current connection
#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_GetConnectedSavedNetworkId(qwf_Context_t *pCtx, uint16_t *const pNetworkId)
This function gets the ID of the Saved Network profile that specifies the currently connected access point. This ID can be provided to other functions that manage Saved Networks. If there's no current connection, an ID of 0 is reported.
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
WIFI_ERR_PARAM A pointer argument is NULL, or the QWF Wi-Fi Manager context can't be retrieved