Found this issue today when we couldn't get our device to talk to a newly
installed MQTT server:

By default the LwIP MQTT Client sends a keepalive of 0 unless you set it
yourself. Documentation in the header file says "0 to disable keep alive
functionality"

Mosquitto 2.0.12 now requires a non-zero keep alive value.

Reading the MQTT specification it's not clear what should happen with a
Keep Alive set to 0, stating "A Keep Alive value of zero (0) has the effect
of turning off the keep alive mechanism. This means that, in this case, the
Server is not required to disconnect the Client on the grounds of
inactivity."  It's not required to disconnect, but it doesn't say that it
can't immediately disconnect either.

Thought this might save some others some time.
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to