Jump to content

MQTT subscription fail


ray

Recommended Posts

Hi there. Let's see if someone can help me.

I have a unistream PLC connected to a mosquitto broker.
The PLC is subscribed to various topics.
Everything seems to be working fine, but sometimes when I restart the PLC, it doesn't subscribe to topics. However, the connection with the broker is correct. If I see the status of the configuration tags, the following appears:

Broker1.Connected = 1
Subscription1.Subscribed = 0
Subscription1.Status = -11 (this means UniStream is not connected to the broker however it is connected.)

To solve this problem I have to restart the PLC again.

Link to comment
Share on other sites

Thank for your reply.

  • Subscription properties -> Quality of service -> 0
  • Broker lined to the Subscription -> Clean session -> not activated

I have tried to subscribe from another client installed on a raspberry pi and the subscription is correct.

However, from unistream I do not have a subscription, but I do have a connection with the broker:

  • Broker1.Connected = 1
  • Subscription1.Subscribed = 0
  • Subscription1.Status = -11 (this means UniStream is not connected to the broker however it is connected.)

 

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...