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...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.