Updated: October 28, 2024 |
Start a scan of available Wi-Fi access points
#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_StartScan(qwf_Context_t *pCtx)
This function starts a scan of available Wi-Fi access points. The scan is asynchronous, so the function returns immediately with a result indicating whether the scan has started. The WIFI_EVENT_SCAN_RESULTS_AVAILABLE event is generated when the scan is complete, typically after several seconds. When it has received this event, the client can query the results using qwf_wifi_GetScanResults().
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 A pointer argument is NULL or the QWF Wi-Fi Manager context can't be retrieved