我的esp8266显示的串口内容MQTT一直连接,时不时设备就掉线了-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2352|回复: 1

[求助] 我的esp8266显示的串口内容MQTT一直连接,时不时设备就掉线了

[复制链接]
发表于 2020-9-20 11:27 | 显示全部楼层 |阅读模式
[586659] Retrying MQTT connection in 5 seconds...
[591659] Connecting to MQTT...
[597838] MQTT Connected!
[597838] Freeheap: 5040
[613221] Connecting to MQTT...
[615210] MQTT Connected!
[615210] Freeheap: 4656
[645222] MQTT Ping!
[675876] MQTT Ping!
[706513] MQTT Ping!
[737107] MQTT Ping!
[738679] Connecting to MQTT...
[755284] Connection failed
[755284] Retrying MQTT connection in 5 seconds...
[760284] Connecting to MQTT...
[763553] MQTT Connected!
[763553] Freeheap: 6528
[793563] MQTT Ping!
[794996] Connecting to MQTT...
[808241] Connection failed
[808241] Retrying MQTT connection in 5 seconds...
[813241] Connecting to MQTT...
[817493] Failed to subscribe
[817493] Retrying MQTT connection in 5 seconds...
[847509] MQTT Ping!
[848937] Connecting to MQTT...
[853328] Failed to subscribe
[853328] Retrying MQTT connection in 5 seconds...
[883348] MQTT Ping!
[913915] MQTT Ping!
[944508] MQTT Ping!
[945940] Connecting to MQTT...
[949475] MQTT Connected!
[949475] Freeheap: 9064
[979478] MQTT Ping!
[1010054] MQTT Ping!
[1011485] Connecting to MQTT...
[1032235] Connection failed
[1032235] Retrying MQTT connection in 5 seconds...
[1037235] Connecting to MQTT...
[1060056] Connection failed
[1060056] Retrying MQTT connection in 5 seconds...
[1065056] Connecting to MQTT...
[1081363] Connection failed
[1081363] Retrying MQTT connection in 5 seconds...
[1086363] Connecting to MQTT...
[1097415] Connection failed
[1097415] Retrying MQTT connection in 5 seconds...
[1102415] Connecting to MQTT...
[1123162] MQTT Connected!
[1123162] Freeheap: 9064
[1153169] MQTT Ping!

发表于 2020-9-20 16:07 | 显示全部楼层
可能是您的程序触发了broker限制(比如发送频率过高)
测试下例程
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 11:45 , Processed in 0.078699 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表