Session 3: MQTT and Cayenne
Uli Raich
Formally CERN, Geneva, Switzerland
COPYRIGHT © 2025 by the contributing authors
Slide 1 of 8
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
COPYRIGHT © 2025 by the contributing authors
Slide 2 of 8
Accessing the WiFi network
COPYRIGHT © 2025 by the contributing authors
Slide 3 of 8
Accessing the WiFi network from Micropython
COPYRIGHT © 2025 by the contributing authors
Slide 4 of 8
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
COPYRIGHT © 2025 by the contributing authors
Slide 5 of 8
COPYRIGHT © 2025 by the contributing authors
Slide 6 of 8
COPYRIGHT © 2025 by the contributing authors
Slide 7 of 8
A MQTT example using umqtt.simple
COPYRIGHT © 2025 by the contributing authors
Slide 8 of 8
--
Uli Raich - 2019-05-14
Comments
This topic: AFNOG
> WebHome >
AFNOGWorkshop2019 >
AFNOG-2019Slides >
WorkshopSlides > MQTTAndCayenne
Topic revision: r4 - 2019-05-15 - UliRaich

Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback