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.
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