1 Star 0 Fork 4.9K

famoustang / docs

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

wifi_event.h

Overview

Related Modules:

Wifiservice

Description:

Defines callbacks and structure of Wi-Fi events.

RegisterWifiEvent can be used to listen for Wi-Fi connection, disconnection, and scan events.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

WifiEvent

Represents the pointer to a Wi-Fi event callback for station and hotspot connection, disconnection, or scan.

Macros

Macro Name and Value

Description

WIFI_STA_ACTIVE   1

Indicates that the Wi-Fi station mode is enabled.

WIFI_STA_NOT_ACTIVE   0

Indicates that the Wi-Fi station mode is disabled.

WIFI_HOTSPOT_ACTIVE   1

Indicates that the Wi-Fi hotspot mode is enabled.

WIFI_HOTSPOT_NOT_ACTIVE   0

Indicates that the Wi-Fi hotspot mode is disabled.

WIFI_MAX_EVENT_SIZE   10

Indicates the maximum number of event listeners that can be registered using RegisterWifiEvent.

Enumerations

Enumeration Name

Description

WifiEventState { WIFI_STATE_NOT_AVALIABLE = 0, WIFI_STATE_AVALIABLE }

Enumerates states in Wi-Fi events.

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

搜索帮助