Name Date Size

..25-Oct-20244 KiB

.gitignoreH A D25-Oct-2024182

AppScope/H25-Oct-20244 KiB

build-profile.json5H A D25-Oct-20241 KiB

entry/H25-Oct-20244 KiB

hvigor/H25-Oct-20244 KiB

hvigorfile.tsH A D25-Oct-2024158

hvigorwH A D25-Oct-20242 KiB

hvigorw.batH A D25-Oct-20242 KiB

oh-package.json5H A D25-Oct-2024810

ohosTest.mdH A D25-Oct-2024937

README.mdH A D25-Oct-20241.1 KiB

README_zh.mdH A D25-Oct-20245.7 KiB

screenshots/device/H25-Oct-20244 KiB

README.md

1#  WLAN
2
3### Introduction
4
5This sample shows how to use WLAN with eTS, including disabling and enabling the WLAN, scanning the WLAN and obtaining the scanning result, listening for WLAN status and Wi-Fi connection status, obtaining the IP address, country code, and checking whether the device supports WLAN features.
6
7### Usage
8
91. After the app is started, it checks whether the WLAN is activated. If it is activated, the app scans for available Wi-Fi networks and displays the list of available and connected Wi-Fi networks.
10
112. Touch the toggle on the page to enable or disable the WLAN. The device listens for the WLAN statue, scans for available Wi-Fi networks, and displays the connected Wi-Fi network.
12
133. Touch a Wi-Fi network in the list of available Wi-Fi networks to connect to the Wi-Fi network. If the Wi-Fi network is encrypted, a dialog box will be displayed asking you to enter the password.
14
154. Touch **About** in the upper right corner of the home page. The obtained IP address, country code, and supported WLAN features are displayed.
16
17### Constraints
18
19This sample can only be run on standard-system devices.
20