ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / WiFi functions
  • Overview
  • Wi-Fi and WINDEV: Principle
  • Wi-Fi and Android: Principle
  • Wi-Fi and iOS: Principle
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Using the Wi-Fi
Overview
WINDEV and WINDEV Mobile propose the WiFi functions to easily access the Wi-Fi networks. This group of functions can be used both in the WINDEV applications and in the Android applications.
WEBDEV - Browser code Only WiFiStatus is available in Browser code.
Wi-Fi and WINDEV: Principle
The principle for using the WiFi functions is as follows:
  1. List the Wi-Fi network cards accessible from the current computer (WiFiListNetworkCard).
  2. Select the Wi-Fi network card to use (WiFiSelectNetworkCard).
  3. Detect the available Wi-Fi access points with WiFiDetectAccessPoint.
  4. List the Wi-Fi networks configured on the computer (WiFiListNetwork).
  5. If an available Wi-Fi access point is found in the list of stored Wi-Fi networks, you have the ability to connect to it (WiFiConnect).
The available functions are as follows:
WiFiConnectConnects the device to the specified Wi-Fi network.
WiFiConnectionInfoReturns the requested information about the current Wi-Fi connection of the device.
WiFiDeleteNetworkDeletes a network from the list of Wi-Fi networks configured on the device.
WiFiDetectAccessPointStarts detecting the Wi-Fi access points currently accessible from the device.
WiFiListNetworkReturns the list of Wi-Fi networks configured on the device.
WiFiListNetworkCardReturns the list of Wi-Fi network cards currently available on the current computer.
WiFiSelectNetworkCardSelects the Wi-Fi network card that will be used for the next calls to the WiFi functions.
Wi-Fi and Android: Principle
The principle for using the WiFi functions is as follows:
  1. Check the Wi-Fi status on the mobile device (WiFiStatus) and enable it if necessary (WiFiActivate). If multiple available Wi-Fi networks are found during the activation, the device will connect to the best Wi-Fi network.
  2. Detect the Wi-Fi access points (WiFiDetectAccessPoint). This allows you to find out all the accessible Wi-Fi networks.
  3. List the Wi-Fi networks saved (WiFiListNetwork).
  4. If an available Wi-Fi access point is found in the list of saved networks, you have the ability to connect to it (WiFiConnect).
  5. If an available Wi-Fi access point is not found in the list of saved networks, you have the ability to configure it (WiFiAddNetwork) and to connect to it (WiFiConnect).
The available functions are as follows:
WiFiActivateEnables or disables Wi-Fi on the device.
WiFiAddNetworkAdds a new network to the list of Wi-Fi networks configured on the device.
WiFiConnectConnects the device to the specified Wi-Fi network.
WiFiConnectionInfoReturns the requested information about the current Wi-Fi connection of the device.
WiFiDeleteNetworkDeletes a network from the list of Wi-Fi networks configured on the device.
WiFiDetectAccessPointStarts detecting the Wi-Fi access points currently accessible from the device.
WiFiListNetworkReturns the list of Wi-Fi networks configured on the device.
WiFiStatusReturns the current activation status of Wi-Fi on the device or asks to be notified when the activation status of Wi-Fi changes.
Related Examples:
WM System Cross-platform examples (WINDEV Mobile): WM System
[ + ] This application is an example of some of the features of WINDEV Mobile available for Android/iOS.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- Wi-Fi
- Bluetooth
- Toast
- Compass
- Accelerometer
- Camera control
- LED
- Vibration
- Notifications
- Drawing functions
- Internet
Wi-Fi and iOS: Principle
In the iOS applications, the Wi-Fi functions are used to:
  • Find out the activation status of Wi-Fi.
  • Get the list of Wi-Fi networks. The available functions are as follows:
WiFiListNetworkReturns the list of Wi-Fi networks configured on the device.
WiFiStatusReturns the current activation status of Wi-Fi on the device or asks to be notified when the activation status of Wi-Fi changes.
See also
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/23/2023

Send a report | Local help