qwf_wifi_GetConnectedSavedNetworkId()

Updated: October 26, 2022

Get the ID of the Saved Network profile used in the current connection

Synopsis:

#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_GetConnectedSavedNetworkId(qwf_Context_t *pCtx,
                                                       uint16_t *const pNetworkId)

Arguments:

pCtx
A pointer to the QWF service context
pNetworkId
A pointer to memory for storing the network ID, as an unsigned 16-bit integer

Library:

qwf_interface

Description:

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.

Returns:

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