Communicating over MQTT

MQTT, the Message Queuing Telemetry Transport protocol is the communication protocol of choice in many IoT applications. It uses a broker receiving subscriptions and publications, distributing messages on a certain topic to everybody subscribed to to it. It is a light weight protocol running of top of TCP.

Below we see an example running mosquitto, the MQTT broker, 2 nodes (mosquitto_sub) have subscribed to the topic AFNOG19 and AFNOG18 respectively.. When a third node publishes information on the topic AFNOG19, then the first subscriber receives the information while when publishing on AFNOG18 it is the second subscriber seeing the message.

mqttDemo.png

MQTT and Cayenne

Cayenne supplies an mqtt broker at mqtt.mydevices.com which uses a strict format for the topic and the payload string. When registering at MyDevices Cayenne as a new user you will be attributed a username and a password. For each device you register you will get a device_id.

-- Uli Raich - 2019-04-09

Comments

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng mqttDemo.png r1 manage 191.3 K 2019-04-25 - 16:33 UliRaich  
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2019-04-25 - UliRaich
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback