MQTT
MQTT
2 2
An Example: Amazon IoT
• Ask Amazon Alexa to turn on the car and heat until 70 degrees.
Another Example: Google and MQTT
Google IoT-Core
Another Example: IBM and MQTT
MQTT: Sensor readings with
pub/sub
Decoupled in space and time.
The clients do not need each other’s
IP address and port (space) and
They do not need to be running at
the same time (time).
commands
browser actuator
• A client is any device that has a TCP/IP stack and speaks MQTT. MQTT-SN
does not require TCP.
• Maintains a hierarchical namespace for topics and allows subscribers (but not
publishers) to use wildcards (+ and #).
Topics are organized into a
hierarchical namespace
• Suppose a client publishes to mm6House/Kitchen/Sensor/Temperature
• Another client might subscribe to:
mm6House/Kitchen/Sensor/Temperature
• Or, using a single level wildcard (+)
mm6House/Kitchen/+/Temperature // All children of Kitchen that
// have a child called Temperature
• Or, using a multi level wildcard (#)
mm6House/Kitchen/# // Goes deep
• The octothorp (#) must be the last character.
• To see every message, subscribe to #.