PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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
WiFiConnectionInfo (Function)
In French: WiFiInfoConnexion
Returns the requested information about the current Wi-Fi connection of 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.
Example
Info(StringBuild("Your current connection speed is equal to %1 Mbps ", WiFiConnectionInfo(wifiSpeed)))
Syntax
<Result> = WiFiConnectionInfo([<Type of Information>])
<Result>: Character string
  • Requested information. If several types of information are requested, each type of information is separated by a CR character (Carriage Return).
    The order in which the information is returned (if requested) is as follows: wifiSSID + wifiBSSID + wifiIPAddress + wifiMacAddress + wifiSpeed + wifiIdNetwork
  • Empty string ("") if the device is not connected to a Wi-Fi access point. The ErrorOccurred variable is set to True. ErrorInfo returns more details about the problem.
<Type of Information>: Optional Integer constant
Requested information:
wifiIPAddressIP address associated with the connection.
WINDEV Constant not available
wifiMACAddressWi-Fi Mac address of the device.
Caution: From Android SDK version 6, the Mac address returned has the following format "02:00:00:00:00:00".
WINDEV Constant not available
wifiBSSIDBSSID (Basic Service Set Identifier) of the access point of the connection.
wifiIdNetwork
  • Identifier of the network to which the device is connected,
  • Empty string ("") if the device is connected to no identified network.
wifiSSIDSSID (Service Set Identifier) of the Wi-Fi network to which the device is connected.
wifiAll
(Default value)
Full information about the connection (corresponds to wifiSSID + wifiBSSID + wifiIPAddress + wifiMacAddress + wifiSpeed + wifiIdNetwork).
WINDEV The value returned for the wifiIPAddress and wifiMacAddress constants corresponds to an empty string.
wifiSpeedSpeed of the Wi-Fi link (expressed in Mbps).
Remarks
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.
Related Examples:
Android System Android (WINDEV Mobile): Android System
[ + ] This application is a tutorial example presenting some of the new features of WINDEV Mobile for Android.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- WIFI
- Bluetooth
- Toast
- Progress Bar control
- 9-image mode
- Compass
- Accelerometer
- Camera control
- LED
- Vibrations
- Notifications
- Drawing functions
- Internet
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