I used XDK110 device and XDK-example 'SendDataOverMQTT'. The data 'Hollo World" was published from XDK110 to mosquitto broker, and one opened terminal on Ubuntu is using to subscribe the data from broker. But the terminal always stopped to receive the 130th publishing data from XDK110. Unless the XDK110 did power-off and power-on again, thus the subscribed data will receive and show on terminal again.
XDK Workbench 3.7, mosquitto MQTT broker, and XDK-example 'SendDataOverMQTT' , both static IP and DHCP, MQTT qos1, port 1883 (without password and certificate) are used in this testing.
Is there any solution for this issue?
Thanks for your kindly help.
this issue comes often with Mosquitto v1.6.x or upper. I would recommend to "downgrade" Mosquitto to v1.5.7 which will provide a stable MQTT session. Else you can try a reconnect logic (when publishing fails, try to reconnect to the broker).