User Tools

Site Tools


listwifinetworks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
listwifinetworks [2016/09/19 16:56]
act
listwifinetworks [2016/09/20 09:29] (current)
act
Line 1: Line 1:
 ====== ListWifiNetworks (since 1.0.1) ====== ====== ListWifiNetworks (since 1.0.1) ======
-The ''​ListWifiNetworks''​ function returns a list of Wifi network names. On Windows the names are the Wifi network profile names. On all other platforms the SSIDs are returned.+The ''​ListWifiNetworks''​ function returns a list of Wifi network names. On Windows ​and Linux the names are the Wifi network profile names. On all other platforms the SSIDs are returned.
  
 <WRAP center round important 60%> <WRAP center round important 60%>
-**Note:​** ​This function is **only available on the following desktop platforms**:​ Microsoft Windows 7 and newer, Apple OS X (not App Store version!), Raspberry Pi, Linux.+**Note:​** ​Please read the platform restrictions described [[wifiscriptingfunctions|here]] first.
 </​WRAP>​ </​WRAP>​
  
 ==== Parameters ==== ==== Parameters ====
-  * ''​networkInterface'':​ The network interface which is used to scan for networks. This argument is only used on Linux platforms. A common interface name is "​**wlan0**"​. +  * ''​networkInterface'':​ The network interface which is used to scan for networks. A common interface name is "​**wlan0**"​. ​At the moment this parameter ​is ignored ​on all platforms.
-  * ''​rootPassword'':​ The root password ​is required ​on Linux platforms ​for getting a complete SSID list. This is potentially insecure.+
  
 ==== Syntax ==== ==== Syntax ====
 <​code>​ <​code>​
-array: ListWifiNetworks([string networkInterface ​= "",​ string rootPassword ​= ""​])+array: ListWifiNetworks([string networkInterface = ""​])
 </​code>​ </​code>​
  
Line 22: Line 21:
 // down or if no network interface is given but one is required by the platform. // down or if no network interface is given but one is required by the platform.
  
-var result = ListWifiNetworks("​wlan0", "​myrootpassword"); +var result = ListWifiNetworks("​wlan0"​);​ 
-// returns a list of Wifi networks for the "​wlan0"​ interface.+// returns a list of Wifi networks for the "​wlan0"​ interface ​on platforms which support this.
 </​code>​ </​code>​
  
listwifinetworks.1474296995.txt.gz · Last modified: 2016/09/19 16:56 by act