当前位置:网站首页>梅科尔工作室-华为14天鸿蒙设备开发实战笔记六
梅科尔工作室-华为14天鸿蒙设备开发实战笔记六
2022-07-23 18:26:00 【keoubaou~】
一.OpenHarmony无线联网开发——WiFi AP热点
1.AP热点API介绍
wifi_hotspot.h接口简介:
这个wifi_hotspot.h中包含声明AP热点相关接口函数。
接口名 | 功能描述 |
EnableHotspot | 启用AP热点模式 |
DisableHotspot | 禁用AP热点模式 |
SetHotspotConfig | 设置指定的热点配置 |
GetHotspotConfig | 获取一个特殊的热点配置 |
IsHotspotActive | 检查AP热点模式是否启用 |
GetStationList | 获取连接到该热点的一系列STA |
GetSignalLEvel | 获取接收信号强度和频率 |
2.AP热点创建代码解读
打开"D1_iot_wifi_ap"工程的wifi_ap.c文件,可在代码中查看实现创建Wifi热点的代码


二.OpenHarmony无线联网开发——WiFi STA联网
1.STA联网相关API
wifi_device.h接口简介:
这个wifi_device.h中包含声明AP热点相关接口函数。
接口名 | 功能描述 |
EnableWiFi | 启用WiFi STA模式 |
DisableHotspot | 禁用WiFi STA模式 |
IsWifiActive | 检查WiFi STA模式是否启用 |
Scan | 扫描热点信息 |
GetScanlnfoList | 获取所有扫描到的热点列表 |
AddDeviceConfig | 配置连接到热点信息 |
GetDeviceConfigs | 获取配置连接到热点信息 |
RemoveDevice | 删除指定的热点配置信息 |
ConnectTo | 连接到指定热点 |
Disconnect | 断开Wifi连接 |
GetLinkedlnfo | 获取热点连接信息 |
GetDeviceMacAddress | 获取设备的MAC地址 |
2.AP热点创建代码解读
打开"D2_iot_wifi_sta_connect"工程的wifi_sta_connect.c文件,可在代码中查看实现连接Wifi热点业务代码。


边栏推荐
- PowerCLi 添加esxi主机到vCenter
- Redis坏了怎么办?
- 华为云HCS解决方案笔记HUAWEI CLOUD Stack【面试篇】
- 20. Valid Parentheses有效的括号
- Codeforces Round #809 (Div. 2)【VP记录】
- Powercli moves virtual machines from host01 host to host02 host
- Energy principle and variational method note 18: virtual force principle
- 【luogu P6656】【LOJ 173】【模板】Runs(字符串)(Lyndon 串)
- Understand chisel language. 21. Chisel sequential circuit (I) -- detailed explanation of chisel register
- 3D point cloud course (VII) -- feature point description
猜你喜欢

三维点云课程(七)——特征点描述
![[hero planet July training leetcode problem solving daily] 23rd dictionary tree](/img/e3/74cb4ce8aa08e0ea90e26bb2d197c3.png)
[hero planet July training leetcode problem solving daily] 23rd dictionary tree
![Codeworks round 805-808 [partial solution]](/img/02/6fb3a963eac165cbae64cdfc0735e1.png)
Codeworks round 805-808 [partial solution]

USB3.0: layout guide for vl817q7-c0

Analyse de l'industrie | interphone logistique

【面试:并发篇22多线程:ReentrantLock】

MySQL master-slave replication

ACM mm 2022 oral | dig: the new framework of self-monitoring character recognition refreshes the recognition performance of 11 public scene character data sets, with an average improvement of 5%

【开发经验】开发项目踩坑集合【持续更新】

PC performance monitoring tool is an indispensable helper for software testers
随机推荐
R语言使用ggpubr包的ggarrange函数将多幅图像组合起来、使用ggexport函数将可视化图像保存为bmp格式(width参数指定宽度、height参数指定高度、res参数指定分辨率)
Mysql主从复制
三维点云课程(六)——三维目标检测
Monotonic queue optimization DP
Hongke dry goods | teaches you how to parse floating-point data in MODBUS
Leetcode - the nearest sum of three numbers
Understand chisel language. 21. Chisel sequential circuit (I) -- detailed explanation of chisel register
PostgreSQL sequence cache 参数导致的数值序列不连续 有间隔 gap
PowerCLi 管理VMware vCenter 一键批量部署OVA
[英雄星球七月集训LeetCode解题日报] 第23日 字典树
PowerCLi 导入 LicenseKey 到esxi
When does MySQL use table locks and row locks?
搭建自己的目标检测环境,模型配置,数据配置 MMdetection
Powercli add esxi host to vCenter
3D point cloud course (VI) -- 3D target detection
Atcoder regular contest 144 [VP record]
PowerCLi 管理VMware vCenter 批量部署导出导入
Search 2D matrix
攻防世界web题-fakebook
Whether the R language test sample conforms to normality (whether the test sample is from a normally distributed population): SF of nortest package is used The test function verifies whether the sampl