Skip to content

Commit

Permalink
6.17号更新mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiwoxiangzhen committed Jun 17, 2024
1 parent 0ce90ec commit 159eaff
Show file tree
Hide file tree
Showing 7 changed files with 633 additions and 5 deletions.
30 changes: 25 additions & 5 deletions docs/sensors/smart_modules/esp8266_mqtt.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@

## 串口助手调试AT指令

如果有**TTL串口下载工具**,可以尝试用串口助手来执行下面的操作,若没有就不用测试,直接跳到使用小结那里。

下载并安装[安信可串口调试助手](./esp8266_mqtt_pic/AiThinker Serial Tool V1.2.3.zip),同时下载[AT指令txt文档](./esp8266_mqtt_pic/SendList_20240228.zip)

![1715069426282](esp8266_mqtt_pic/1715069426282.png)
Expand All @@ -107,15 +109,33 @@

![1715071936312](esp8266_mqtt_pic/1715071936312.png)

在此我们提供[服务器地址](remote.microprinttech.com:19825 ),端口19825
## 使用小结:

为正常使用MQTT连接物联网并显示数据,我们需要执行两部分操作:登陆客户端查看和硬件联网。在执行完这两个操作后,重启硬件等待一会,刷新客户端查看数据。

1. 网页端登陆查看,在此我们提供[服务器地址](http://remote.microprinttech.com:19825/#/clients),端口19825,用户名admin,密码Anynod2022514 ,打开后并登陆,如下图。

![1716255127748](esp8266_mqtt_pic/1716255127748.png)

2. 编程端硬件连接物联网,[地址](remote.microprinttech.com)remote.microprinttech.com(此网址智能是MQTT连接,复制到浏览器是打不开的),端口19824,用户名和密码如下:注意!!!**一定是用这两个账号**!!!

账号1:kxmqttp1 密码 public985

账号2:kxmqttp2 密码 public211

![1716262064934](esp8266_mqtt_pic/1716262064934.png)

3. 点击工具,选择 websocket,然后再点击“连接”,使客户端也连接服务器。

![1716344674813](esp8266_mqtt_pic/1716344674813.png)

user: admin
4. 然后在主题栏输入你测试的主题,点击订阅,会提示订阅成功;然后让硬件发送信息,可以看到订阅消息列表中收到相关的消息。此时说明硬件已经成功连接物联网,且可以发送消息。

passwd: Anynod2022514
![1716270156455](esp8266_mqtt_pic/1716270156455.png)

账号1:kxmqttp1 密码 public985
5. 再在消息栏的主题里输入订阅的主题,然后输入测试的消息,点击发送,发送成功后,即可在发布消息列表栏看到已发送的消息,表明客户端可以远程控制了硬件。

账号2:kxmqttp2 密码 public211
![1716270300767](esp8266_mqtt_pic/1716270300767.png)

## AT指令详解

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 159eaff

Please sign in to comment.