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
Connects the device to the specified Wi-Fi network.
AndroidAndroid Widget Note: The Wi-Fi access is not available in the Android emulator.
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
IF WiFiConnect("14758") = True THEN
        Info("Wi-Fi connection established.")
END
Syntax
<Result> = WiFiConnect(<Identifier> [, <Password>])
<Result>: Boolean
  • True if the connection was established,
  • False otherwise. ErrorInfo returns more details about the problem.
<Identifier>: Character string (with quotes)
Identifier of the network to which we want to connect. This identifier can be:
  • the identifier returned by WiFiAddNetwork (for a network that was just added).
  • AndroidAndroid Widget the identifier of a network selected in the list of available networks (WiFiListNetwork).
<Password>: Optional character string (with quotes)
Password used to connect to a secured network. If this parameter is not specified, the password used will be the one saved in the network configuration (if this password exists).
Remarks
AndroidAndroid Widget

Required permissions

The call to this function modifies the permissions required by the application.
Required permissions :
  • ACCESS_WIFI_STATE: this permission allows the applications to access information regarding the Wi-Fi networks.
  • CHANGE_WIFI_STATE: this permission allows the applications to modify the Wi-Fi connectivity status.
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