MQTT subscription configuration - how to describe MQTT topic

60 views
Skip to first unread message

Michał Koziak

unread,
Sep 14, 2015, 3:24:22 AM9/14/15
to MQTT
Hi
I'm implementing MQTT stack in my solution (based on STM32F1 cortex M3). I've rabbitMQ server with MQTT plugin and create exchange and all messages published by my any devices are save in one queue. This way of data is workking good.

Now i want make a reverse comunication (publish message to queue on server and one of device subscibe it). How i can configure a server ? When my device conect to server (device name : 37FFD6054353373119830743) server automatically create a queue : mqtt-subscription-37FFD6054353373119830743qos1. When i publish a message on it my device recieve it on topic with the same name (mqtt-subscription-37FFD6054353373119830743qos1). How i can publish an message with custom topic name ?

In ideal sytuation i want have a queue in rabbit with name of ma device 37FFD6054353373119830743 (without "mqtt-subscryption" and "qos1" names) and when i publish a message it will be send to mqtt topic with my custom name (for example "Commands").

Thanks
Michał
Reply all
Reply to author
Forward
0 new messages