1 Star 0 Fork 4.9K

Lin_bruin / docs

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

wifi_hotspot.h

Overview

Related Modules:

Wifiservice

Description:

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

Since:

1.0

Version:

1.0

Summary

Macros

Macro Name and Value

Description

HOTSPOT_DEFAULT_CHANNEL   6

Defines the default channel of the hotspot mode.

Functions

Function Name

Description

EnableHotspot (void)

WifiErrorCode 

Enables the hotspot mode.

DisableHotspot (void)

WifiErrorCode 

Disables the hotspot mode.

SetHotspotConfig (const HotspotConfig *config)

WifiErrorCode 

Sets a specified hotspot configuration.

GetHotspotConfig (HotspotConfig *result)

WifiErrorCode 

Obtains a specified hotspot configuration.

IsHotspotActive (void)

int 

Checks whether the hotspot mode is enabled.

GetStationList (StationInfo *result, unsigned int *size)

WifiErrorCode 

Obtains an array of stations connected to this hotspot.

GetSignalLevel (int rssi, int band)

int 

Obtains the signal level indicated by a specified received signal strength indicator (RSSI) and frequency band.

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

搜索帮助