Spring MqttPahoMessageDrivenChannelAdapter Lost connection:Connection lost; retrying

前端 未结 2 1867
庸人自扰
庸人自扰 2021-01-14 20:06

We are using Spring message-driven-channel-adapter to subscribe MQTT topic. But we are getting below error very frequently. I have tes

2条回答
  •  生来不讨喜
    2021-01-14 20:32

    Just wanted to share in case it helps... I had the same exception and fixed it by ensuring a unique client ID was generated (with MqttAsyncClient.generateClientId()), as mentioned here: https://github.com/eclipse/paho.mqtt.java/issues/207#issuecomment-338246879

提交回复
热议问题