1 Star 0 Fork 5.2K

seanOY / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wifi_device-h.md 11.53 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

wifi_device.h

Overview

Related Modules:

Wifiservice

Description:

Provides capabilities to enable and disable the station mode, connect to and disconnect from a station, query the station status, and listen for events.

Since:

1.0

Version:

1.0

Summary

Functions

Function Name

Description

EnableWifi (void)

WifiErrorCode

Enables the station mode.

DisableWifi (void)

WifiErrorCode

Disables the station mode.

IsWifiActive (void)

int

Checks whether the station mode is enabled.

Scan (void)

WifiErrorCode

Starts a Wi-Fi scan.

GetScanInfoList (WifiScanInfo *result, unsigned int *size)

WifiErrorCode

Obtains an array of hotspots detected in a Wi-Fi scan.

AddDeviceConfig (const WifiDeviceConfig *config, int *result)

WifiErrorCode

Adds a specified hotspot configuration for connecting to a hotspot.

GetDeviceConfigs (WifiDeviceConfig *result, unsigned int *size)

WifiErrorCode

Obtains all hotspot configurations.

RemoveDevice (int networkId)

WifiErrorCode

Removes a hotspot configuration matching a specified networkId.

ConnectTo (int networkId)

WifiErrorCode

Connects to a hotspot matching a specified networkId.

Disconnect (void)

WifiErrorCode

Disconnects this Wi-Fi connection.

GetLinkedInfo (WifiLinkedInfo *result)

WifiErrorCode

Obtains information about the connected hotspot.

RegisterWifiEvent (WifiEvent *event)

WifiErrorCode

Registers a callback for a specified Wi-Fi event.

UnRegisterWifiEvent (const WifiEvent *event)

WifiErrorCode

Unregisters a callback previously registered for a specified Wi-Fi event.

GetDeviceMacAddress (unsigned char *result)

WifiErrorCode

Obtains the MAC address of this device.

AdvanceScan (WifiScanParams *params)

WifiErrorCode

Starts a Wi-Fi scan based on a specified parameter.

1
https://gitee.com/seanoy/docs.git
git@gitee.com:seanoy/docs.git
seanoy
docs
docs
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891