PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the list of Wi-Fi networks currently configured on the device.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
New in version 18
Android Widget This function is now available in Android Widget mode.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
Android Widget This function is now available in Android Widget mode.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
Versions 19 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 19
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Example
MyList is string
nID is int  
sSSID is string

MyList = WiFiListNetwork()
FOR EACH STRING Network OF MyList SEPARATED BY CR
nId = Val(ExtractString(Network, 1 , TAB)
sSSID = ExtractString(Network, 2, TAB)
...
END
Syntax
<Result> = WiFiListNetwork()
<Result>: Character string
List of networks separated by CR characters (Carriage Return) and sorted by priority order (from the one with the highest priority to the one with the lower priority). The network with the highest priority is the one chosen by the device to connect in Wi-Fi.
For each network, a set of information is returned in the following format:
<Identifier> + TAB + <SSID> + TAB + <Security>
where:
  • <Identifier>: Identifier of network. Then, this identifier can be passed in parameter to WiFiConnect in order to connect to this network.
  • <SSID>: SSID (Service Set Identifier) of Wi-Fi network.
  • <Security>: Security protocol used by the network:
    wifiSecurityNoneNo security is used.
    wifiSecurityWEPSecurity based on a WEP key (Wired Equivalent Privacy).
    wifiSecurityWPASecurity that is using the WPA mechanism (Wi-Fi Protected Access).
    wifiSecurityWPA2Security that is using the WPA2 mechanism (Wi-Fi Protected Access).
    wifiSecurityWPA_EAPSecurity that is using the WPA (Wi-Fi Protected Access) and EAP (Extensible Authentication Protocol) mechanisms.
    wifiSecurityIEEE8021XSecurity that is using the IEEE 802.1x standard.
iPhone/iPad The security protocol is always 0.
Remarks

Special cases

  • To connect the device to one of the networks found in the list, use WiFiConnect and pass the identifier of the selected network in parameter.
  • WiFiListNetwork returns the list of Wi-Fi networks configured on the device. To find out the list of access points currently accessible from the device, use WiFiDetectAccessPoint.
  • AndroidAndroid Widget The Wi-Fi must be enabled on the device in order to retrieve the list of networks. Otherwise, the function will fail: use ErrorInfo to find out the error details.
AndroidAndroid Widget

Required permissions

The call to this function modifies the permissions required by the application.
Required permission : ACCESS_WIFI_STATE
This permission allows the applications to access information regarding the Wi-Fi networks.
Components
WINDEV wd230com.dll
Android wd230android.jar
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment