qwf_wifi_Disconnect()

Updated: April 19, 2023

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

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 network profiles are enabled, meaning their auto-connect settings are enabled, and available, meaning they were found in the latest scan, the Wi-Fi supplicant service selects one of them and tries connecting to its access point. The selection is based on which network was last connected and the current signal strengths.

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 or read the response

WIFI_ERR_PARAM pCtx is NULL, or the QWF Wi-Fi Manager conext can't be retrieved