Slide 1: Setting up an IoT
Session3: MQTT and Cayenne
Uli Raich
Formally CERN, Geneva, Switzerland
Slide 2: The Network Layers
The WeMos D1 mini has a built-in WiFi interface
In order to communicate with other IoT nodes we must therefore connect to the WiFi network first
On top of WiFi we will run a TCP session
On top of TCP we will run the MQTT protocol
On top of MQTT we have dedicated topics and payloads imposed by Cayenne
Slide 3: Accessing the WiFi network
Slide 4: Accessing the WiFi network from Micropython
Slide 5: MQTT
MQTT (Message Queuing Telemetry Transport: a publish-subscribe based
message protocol running of top of TCP.
A processor can subscribe to messages of a certain “topic” and/or it can push its
results on a certain topic
Slide 6: MQTT Demo
Slide 7: The Micropython library
Slide 8: A MQTT example using umqtt.simple
--
Uli Raich - 2019-05-14
Comments