Updated: October 28, 2024 |
Disable auto-connect for a Saved Network profile
#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_DisableSavedNetwork(qwf_Context_t *pCtx, uint16_t networkId)
This function disables auto-connect for the specified Saved Network. While this setting is disabled, the Wi-Fi Manager service doesn't automatically try connecting to the access point when it's available and there's no active connection to any Wi-Fi network.
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 pCtx is NULL, networkId is 0 (which is invalid), or the QWF Wi-Fi Manager context can't be retrieved