程序包 ohos.wifi

Executes or configures Wi-Fi.

  • WifiDevice: Provides methods for obtaining Wi-Fi status and information, such as checking whether Wi-Fi is enabled, obtaining the list of information about access points detected in a Wi-Fi scan, and checking whether a Wi-Fi connection has been set up.
  • WifiLinkedInfo: Provides information about the peer hotspot connected to the current device, such as SSID, BSSID, and RSSI of the peer hotspot.
  • WifiScanInfo: Stores information about the scanned Wi-Fi hotspot, such as SSID and BSSID.
  • IpInfo: Provides information about a Wi-Fi connection that has been set up, such as the IP address, gateway address, and DNS server address.
  • WifiEvents: Provides the constants used for Wi-Fi management, such as the broadcast name, encryption mode, and frequency band.
  • 从以下版本开始:
    1
    跳过导航链接