Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After a loss of connection to broker I no longer get subscription messages #10

Open
dclark3774 opened this issue Mar 30, 2022 · 0 comments

Comments

@dclark3774
Copy link

Hello,

I have been creating a custom library that handles all of the methods for the MQTT portion of this library, and what I have found is if I ever lose connection to the broker and trigger a reconnect the subscriptions never come back.

I have even tried re-initializing the subscriptions (Subscribe>StartConsume>TryConsume) and no new messages ever show up... The try-consume block is working as expected but no new messages populate.

Do I even need to re-subscribe after a reconnect? Do I still have to re-initialize the consumption of messages? Should I just restart the entire initialization of the MQTT block? (Enable-IIOT_MqttClient_4>Connect>IsConnected>Subscribe>StartConsume>TryConsume)

Any help with this would be greatly appreciated, I need to have a solution for a customer ASAP. If you would rather reach out to me and discuss via email here is my email: dclark@phoenixcontact.com

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant