解决 spring-integration-mqtt 频繁报 Lost connection 错误
问题描述
在之前的博客介绍了如何在Spring Boot 集成 MQTT,后面使用中没有发现问题,最近发现一直报错:
Lost connection: Connection lost; retrying...
Lost connection: 已断开连接; retrying...
解决过程
网上说是因为 client ID 重复,最开始是不相信的,因为我测试只启动了一个客户端。但是却怎么都定位不到异常原因,用重新回到 client ID 重复的这个思路上来:
因为程序里同时作为订阅者和.
转载
2020-11-23 17:54:12 ·
5111 阅读 ·
1 评论