FieldFox / Codesys-Mqtt-lib

A Codesys MQTT library
GNU General Public License v3.0
36 stars 19 forks source link

Detection of Lost Socket #8

Open philipstinson opened 6 years ago

philipstinson commented 6 years ago

Hi,

I am trying to figure out how to detect when the broker has closed the connection the subscription can be restarted. Is there a way to do this? Alternatively should keep alives be added?

As a suggestion - I also moved q_xReceivedMessageNotification:= TRUE;

from state 60: to state 63: that //Analyze Publish Message from Broker that way the notification only happens once in the correct cycle once the message has been parsed.

Thanks, Phil