I've been trying to understand how the thingsboard MQTT API works internally, however I can't figure it out.
Given two devices, A and B:
Both devices are subscribed to the following topic:
v1/devices/me/attributes
Then, for the device A when I add an attribute key1 with value value1 in the Thingsboard UI, the device A receives the following message:
{"key1":"value1"}
Which is the expected behavior according to the documentation, however the device B doesn't receive any message even though it is subscribed to the following topics:
- #
- v1/devices/me/attributes
I can't understand how it is possible that client A receives the message and client B doesn't, even though they are connected to the same topic, and device B is also subscribed to # topic.
This is not the way MQTT topics normally work, and I'd like to know if someone can tell me how thingsboard implements this behavior, since I find it really useful, since only one of the devices receives a response message, but only one topic is used.