qwf_wifi_ConnectSavedNetwork()

Connect to the access point specified in a given Saved Network profile

Synopsis:

#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_ConnectSavedNetwork(qwf_Context_t *pCtx,
                                                uint16_t networkId);

Arguments:

pCtx
A pointer to the QWF service context created by qwf_Init()
networkId
The network profile ID given by qwf_wifi_CreateSavedNetwork()

Library:

qwf_interface

Description:

This function forces the Wi-Fi Manager service to connect to the access point specified in a given Saved Network profile, if the access point is available. Any currently established Wi-Fi connection will be disconnected first.

Returns:

WIFI_OK Successful result

WIFI_ERR_PARAM pCtx is NULL, networkId is 0 (which is invalid), or the QWF Wi-Fi Manager context can't be retrieved

WIFI_ERR_INT The QWF Wi-Fi Manager service couldn't issue the request