MQTT Client Id

114 views
Skip to first unread message

Leo Chan

unread,
Mar 2, 2016, 4:46:20 PM3/2/16
to rabbitmq-discuss
Using the MQTT plugin, does anyone know if it is possible to propagate the client id to the AMQP message user_id field?

I have a use case where I need to be able to identify the publisher of an MQTT message. Another possible way to solve this is to limit which topics a publisher can publish to.

Has anyone else come across any similar use cases and solutions?

Thanks in advance.

Leo

Jesse Trana

unread,
Mar 16, 2016, 9:05:10 PM3/16/16
to rabbitmq-discuss
I was wondering about this recently too. I came to the conclusion that I don't think that information is being propagated in any way from MQTT to AMQP after looking at the source: https://github.com/rabbitmq/rabbitmq-mqtt/blob/master/src/rabbit_mqtt_processor.erl#L615 and at this older message that seems to indicate that at least at the beginning it did not propagate either: https://github.com/rabbitmq/rabbitmq-mqtt/issues/8

I personally would like to see this added as a feature. I have to imagine that many of us would like to be able to use the client id to feed into something like consistent hash exchange for IoT types of applications...

Jesse Trana

unread,
Mar 16, 2016, 9:24:38 PM3/16/16
to rabbitmq-discuss
Also, I think you'll have better luck here: https://groups.google.com/forum/#!forum/rabbitmq-users
Reply all
Reply to author
Forward
0 new messages