PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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.
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.
WiFiDetectAccessPointStarts detecting the Wi-Fi access points currently accessible from the device.
WiFiConnectionInfoReturns the requested information about the current Wi-Fi connection of the device.
WiFiListNetworkCardReturns the list of Wi-Fi network cards currently available on the current computer.
WiFiListNetworkReturns the list of Wi-Fi networks configured on the device.
WiFiSelectNetworkCardSelects the Wi-Fi network card that will be used for the next calls to the WiFi functions.
WiFiDeleteNetworkDeletes a network from the list of Wi-Fi networks configured on the device.
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.
WiFiDetectAccessPointStarts detecting the Wi-Fi access points currently accessible from 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.
WiFiConnectionInfoReturns the requested information about the current Wi-Fi connection of the device.
WiFiListNetworkReturns the list of Wi-Fi networks configured on the device.
WiFiDeleteNetworkDeletes a network from the list of Wi-Fi networks configured on the device.
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:
WiFiStatusReturns the current activation status of Wi-Fi on the device or asks to be notified when the activation status of Wi-Fi changes.
WiFiListNetworkReturns the list of Wi-Fi networks configured on the device.
See also
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment