Error connecting or subscribing to [heart/#]
org.eclipse.paho.client.mqttv3.MqttException: 等待来自服务器的响应时超时
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:31) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at org.eclipse.paho.client.mqttv3.internal.ClientState.checkForActivity(ClientState.java:741) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at org.eclipse.paho.client.mqttv3.internal.ClientComms.checkForActivity(ClientComms.java:816) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at org.eclipse.paho.client.mqttv3.internal.ClientComms.checkForActivity(ClientComms.java:802) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at org.eclipse.paho.client.mqttv3.TimerPingSender$PingTask.run(TimerPingSender.java:79) ~[org.eclipse.paho.client.mqttv3-1.2.1.jar!/:na]
at java.util.TimerThread.mainLoop(Timer.java:555) ~[na:1.8.0_221]
at java.util.TimerThread.run(Timer.java:505) ~[na:1.8.0_221]
mqtt报错,无法订阅topic文章来源:https://www.toymoban.com/news/detail-690640.html
报错原因,由于服务重启导致IP变了,mqtt服务校验出现问题,在docker配置中关闭校验或者重新配置新的校验地址。直接部署服务应该也有相关配置。文章来源地址https://www.toymoban.com/news/detail-690640.html
environment:
# EMQX_LOADED_PLUGINS: emqx_recon,emqx_auth_http,emqx_web_hook
到了这里,关于org.eclipse.paho.client.mqttv3.MqttException: 等待来自服务器的响应时超时Error connecting or subscribing to [h的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!