bool Scan(string)
Retrieves a list of all visible networks for a specified interface.
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
interfaceGUID |
string The GUID of the interface to retrieve networks for. This must match the GUID of one of the items returned by GetInterfaces(). |
Return
True, if the request was successfully made, false otherwise.
Remarks
This function is asynchronous, and will fire the OnWiFiScanCompleted callback when the call is completed.
Examples
// shows all networks for the first interface.
var interfaces = KioWiFi.GetInterfaces();
if (interfaces.length == 0) {
alert('No wifi interfaces found!');
return;
}
if (!KioWiFi.Scan(interfaces[0].guid))
alert ('Failed to request a scan.');
function OnWiFiScanCompleted (result) {
for (var i = 0; i < result.networks.length) {
alert(result.networks[i].ssid);
}
}
Requirements
KioWare for Windows version 8.14 or greater.