harmony 鸿蒙oh_wifi.h

2025-06-12 浏览 (1)

oh_wifi.h

Overview

Defines APIs for obtaining Wi-Fi switch state.

Library: libwifi_ndk.so

System capability: SystemCapability.Communication.WiFi.STA

Since: 13

Related module: Wifi

Summary

Types

NameDescription
typedef enum Wifi_ResultCode Wifi_ResultCodeDefines an enum for the error codes returned by Wi-Fi APIs.

Enums

NameDescription
Wifi_ResultCode {
WIFI_SUCCESS = 0,
WIFI_PERMISSION_DENIED = 201,
WIFI_INVALID_PARAM = 401,
WIFI_NOT_SUPPORTED = 801,
WIFI_OPERATION_FAILED = 2501000
}
Enumerates the error codes returned by Wi-Fi APIs.

Functions

NameDescription
Wifi_ResultCode OH_Wifi_IsWifiEnabled (bool *enabled)Checks whether Wi-Fi is enabled.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Connectivity Kit (Short-Range Communication Service)

harmony 鸿蒙Bluetooth

harmony 鸿蒙Wifi

harmony 鸿蒙Bluetooth Error Codes

harmony 鸿蒙NFC Error Codes

harmony 鸿蒙SecureElement Error Codes

harmony 鸿蒙Wi-Fi Error Codes

harmony 鸿蒙@ohos.bluetooth.a2dp (Bluetooth A2DP Module) (System API)

harmony 鸿蒙@ohos.bluetooth.a2dp (Bluetooth A2DP Module)

harmony 鸿蒙@ohos.bluetooth.access (Bluetooth Access Module) (System API)

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/IAQPDf