当前位置:网站首页>第2讲 Hi3861的WiFi实验-Station模式
第2讲 Hi3861的WiFi实验-Station模式
2022-07-20 23:16:00 【随遇而安的dandelion】
引言
在本文中,带大家编写一个程序,测试Hi3861的WiFi-Station模式,进一步熟悉相关API的使用。
请先按照本专栏第一讲中的第四部分准备好实验环境。
一、编写程序
首先,打开 DevEco Device Tool
,在鸿蒙项目 hispark_pegasus_312
的文件夹applications/sample/wifi-iot/app/experiment
下创建一个新文件夹C02_wifi_sta
。
然后,在文件夹C02_wifi_sta
新建一个文件:wifi_sta_test.c
。下面,我们就在这个文件中编写程序。
1.1 头文件
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "ohos_init.h"
#include "ohos_types.h"
#include "cmsis_os2.h"
#include "wifi_device.h"
#include "netif.h"
#include "netifapi.h"
#include "ip4_addr.h"
#include "api_shell.h"
边栏推荐
- SAP FIORI专题之二:用webide构建带导航栏的fiori
- 【图文并茂】这次一文讲透JVM架构、类文件结构、字节码结构!!
- Analysis of tars source code 25
- Why is report development still a headache after using famous tools
- 卷积神经网络单图超分辨率的深度学习方法
- Analysis of tars source code 21
- Huawei wireless devices are configured with ACL based message filtering
- 我用Redis分布式锁,抢了瓶茅台,然后GG了~~
- Kruskal 重构树
- Es basic knowledge and common query basis
猜你喜欢
Regression prediction analysis of jujube genetics based on support vector machine
cv demo
Poor CDH cluster: there are 1855 blocks with insufficient replicas in the cluster. There are 1857 blocks in the cluster. Percentage of blocks with insufficient copies: 99.89%. Critical threshold: 40.0
Three sequence traversal BFs of binary tree
List of shell script special variables
How Kube proxy works
MD editor - typora
Huawei wireless devices are configured with rapid roaming between APs of different service VLANs
ONEFLOW V0.8.0 officially released
二维数组中查找
随机推荐
Analysis of tars source code 26
JS-数据类型-和转换
JS--语法基础
The performance of major mainstream programming languages is PK, and the results are unexpected
JS--循环--猜数字(生成随机数存在小数Math.random)
tars源码分析之27
Latest microservice component selection
tars源码分析之22
JS data type and conversion
Design sharing | single chip microcomputer DC motor speed control (assembly)
Kubernetes service load balancing implementation mechanism
【图文并茂】这次一文讲透JVM架构、类文件结构、字节码结构!!
Analysis of tars source code 24
迁移Repo管理的代码到Gerrit
Huawei wireless devices are configured with non fast roaming between APs of different service VLANs
The difference between memory overflow and memory leak
设计分享|单片机直流电机转速控制(汇编)
Codeforces Round #809 (Div. 2)
mysql 常用操作和基础查询
复杂链表的复制