qwf_wifi_GetConnectedSavedNetworkId()

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 created by qwf_Init()
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_PARAM A pointer argument is NULL, or the QWF Wi-Fi Manager context can't be retrieved