当前位置:网站首页>RT-thread学习
RT-thread学习
2022-07-26 22:45:00 【快乐学习吧】
驱动wifi 链接外部wifi
1.下载软件包
rw 007
2.然后进行配置,这个地方打开
3.接着进行配置


这样配置
然后在这里能看到小于23M
可以看到这个地方已经生效
4.然后进行编译运行
5.然后进行加载
一下是可能出现的问题:


驱动加载错误
原因:
TF卡的SPI与此SPI是在一个地址
打开此SPI

注意不同的设备使用同个SPI时要配置频率
以上就是驱动wifi的方法

比如这个就是当不同SD卡时就要配置不同的频率,否则去到SD卡
这里配置频率
搭建一个小型的网络环境
利用STA功能
链接wifi,获得IP地址
查看主机wifi地址,检验是否能Ping通自己主机.
如果没有Ping通,需要关闭防火墙的一些配置.

如果没有ifconfig的,说明AT命令没有打开
然后进行设置配置工具
然后进行配置这个软件包
接入onenet平台
https://open.lot.10086.cn/
选择多协议接入
然后进行添加产品,随便选择
再产品中添加设备:
关于公开还是私有都是可以的
添加APIKey 随便输入字符即可
结果如下:

以上就是onenet上添加了很多的设备,以后的操作就是将设备链接到平台中

搜索onenet软件包 并添加

所选择的是自动选上的依赖
然后根据onenet上的信息向软件包里的配置进行编辑

如此进配置项

进入这里看到一下信息 master-APIkey
将这个复制到相应位置
配置完成
onenet包的位置

链接
设备在线
先wifi命令连接到wifi获得IP地址,再使用onenet命令进行连接
使用这个命令进行上传数据据
上传代码
修改代码,在一定上传次数后关闭
也可以修改其中内容,上传不同的值
参考这里面的finish 命令
组件选择情况

数据的下发可以看到一些字符
onenet协议是mqtt协议
链接成功看到这个
边栏推荐
猜你喜欢

Web server (01) -- Introduction to web server

Big model training is difficult to go to the sky? Here comes the efficient and easy-to-use "Li Bai" model library

4.1 It is super simple to install QT without using Sogou Chinese input method

Shell(8)循环

Iptables firewall (I)

Shell(6)if判断

软件测试面试题之网络基础

System safety and Application

Suggestions for beginners of MySQL (strongly recommended ~ don't regret ~ ~)

Esp8266---json---c function library provides string functions
随机推荐
Summary of heap sorting related knowledge
Traversing binary trees in non recursive pre -, middle -, and post order
MySQL system variables and state variables
十五、expect
ESP8266 STA_ TCP_ Server
正则表达式之小工具系列
7、 Loop statement
ESP8266 AP_ TCP_ Server
Shell(12)正则表达式
继承的详细介绍与理解,看了就懂
[Oracle] get the latest working day and the previous N working days
Definition of array
34iptables firewall
系统安全及应用
Download pronunciation pairs+ship or sheet+tree or three
SSH和NFS服务
LAMP.
Producer consumer model of concurrent programming
Iptables firewall (I)
32三剑客sed