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