[rabbitmq-discuss] MQTT Adapter question
    Emile Joubert 
    emile at rabbitmq.com
       
    Thu May 30 12:28:01 BST 2013
    
    
  
Hi,
On 30/05/13 11:51, mlinnen at protosystem.net wrote:
> My question is how do the AMQP messages get broken down into MQTT
> topics?  if I publish a message on the RabbitMQ side what topic do I
> subscribe to on the MQTT side for the embedded devices?
The RabbitMQ MQTT adapter make use of a configured topic exchange, which
is "amq.topic" by default. If AMQP publishers select this exchange then
MQTT subscribers with matching subscriptions will be able to receive
their messages. The message routing key must match the subscription
pattern with respect to the syntax rules of each protocol. The
translation table is here:
http://hg.rabbitmq.com/rabbitmq-mqtt/file/351b73d637e6/src/rabbit_mqtt_util.erl#l27
See com.rabbitmq.mqtt.test.MqttTest.testInteropA2M() for an example of
interop between AMQP and MQTT.
Also see this post by Brett Cameron for more interop examples:
http://assortedrambles.blogspot.co.nz/2012/11/the-polygot-rabbit.html
-Emile
    
    
More information about the rabbitmq-discuss
mailing list