thingsboard / thingsboard-edge

Apache License 2.0
101 stars 77 forks source link

[Bug] MQTT subscription does not work as expected #9

Closed ricktauss closed 2 years ago

ricktauss commented 2 years ago

The bug If a device profile for MQTT is created with any customized topic, it is possible to send data to the topic but subscribing fails.

Server Environment Docker Setup on Ubuntu Server on RaspberryPi Docker image: volodymyrbabak/tb-cassandra 3.3.4.2

Edge Environment Docker Setup on Ubuntu Server on RaspberryPi Docker image: thingsboard/tb-edge 3.3.4EDGE

To Reproduce failed subscription Steps to reproduce the behavior:

  1. Create device profile
  2. Create user defined topics for telemetry and attributes
  3. Try to subscribe to this topics Screenshot documentation: Device profile: 1 MQTTX client try to subscribe: 2 Log message from docker container: 3
volodymyr-babak commented 2 years ago

@ricktauss hello, could you please specify details on the MQTT client host - are you connecting to TB edge or to TB server?

ricktauss commented 2 years ago

@volodymyr-babak Hello, as MQTT Client Software i use MQTTX on Windows PC for testing publishing and subscribing.

I have created a device once for the ThingBoard Plattform and once for the ThingsBaord Edge. For both variants it is possible to publish to the telemetry and the attribute topic which was defined in the device profile. But subscribing to this topics doesn't work on any plattform or topic.

volodymyr-babak commented 2 years ago

@ricktauss

I believe this is covered in the answer https://github.com/thingsboard/thingsboard-edge/issues/10#issuecomment-1135039863 Please let me know if you are interested in any additional details.

ricktauss commented 2 years ago

@volodymyr-babak Yes this covers both. I will also close this issue as completed