qwf_wifi_Disconnect()

Disconnect the current Wi-Fi network connection

Synopsis:

#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_Disconnect(qwf_Context_t *pCtx);

Arguments:

pCtx
A pointer to the QWF service context created by qwf_Init()

Library:

qwf_interface

Description:

This function requests the Wi-Fi Manager service to disconnect the current network connection. The service does this by disabling the active Saved Network profile.

Note:

If other Saved Network profiles are enabled, meaning their auto-connect settings are enabled, and available, meaning they were found in the latest scan, the service selects one of them and tries connecting to its access point. The selection is done by the underlying Wi-Fi supplicant service and is based on which network was last connected and the current signal strengths.

Returns:

WIFI_OK Successful result

WIFI_ERR_PARAM pCtx is NULL, 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