-
Hello! I am using this repo to establish a connection to an AWS MQTT broker. I can successfully create the connection:
But as soon as I create a subscription to a topic (delay is there just for debugging this issue):
The connection is closed:
I did some debugging and I discovered that the underlying
Is this the expected behaviour? There is nothing actively being published to the topic. The publisher entity is a piece of hardware that publishes some sensor data every once in a while. The connection stays alive if I just comment out the subscription. Publishing data from the app to that same topic works and my hardware device receives it as expected. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Well I figured out the problem and it was quite trivial. My MQTT version was incorrect. Changing to version 5 solved the issue. |
Beta Was this translation helpful? Give feedback.
Well I figured out the problem and it was quite trivial. My MQTT version was incorrect. Changing to version 5 solved the issue.