mosquitto reconnect clients lose network

Asked by rujun

It seems to the clients(i'm talking the C API) could not reconnect to server when the clients lose the network how to fix this?
Thank you!

Question information

Language:
English Edit question
Status:
Answered
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

If you're using mosquitto_loop_start() or mosquitto_loop_forever(), the client should reconnect automatically. If you're using mosquitto_loop(), you will need to detect the connection being dropped and reconnect yourself.

Can you help with this problem?

Provide an answer of your own, or ask rujun for more information if necessary.

To post a message you must log in.