Start Presentation

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 from Micropython

wifiConnect.png

Slide 4: 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

mqttPostOfffice.png

Slide 5: MQTT Demo

mqttDemo.png

Slide 6: The Micropython library

micropython-lib.png

Slide 7: A MQTT example using umqtt.simple

umqttDemo.png

-- Uli Raich - 2019-05-14

Comments

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng micropython-lib.png r1 manage 75.2 K 2019-05-14 - 17:31 UliRaich  
PNGpng mqttDemo.png r1 manage 191.3 K 2019-05-14 - 17:23 UliRaich  
PNGpng mqttPostOfffice.png r1 manage 50.2 K 2019-05-14 - 17:18 UliRaich  
PNGpng umqttDemo.png r2 r1 manage 72.2 K 2019-05-14 - 17:38 UliRaich  
PNGpng wifiConnect.png r1 manage 128.4 K 2019-05-14 - 17:18 UliRaich  
Edit | Attach | Watch | Print version | History: r9 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2019-05-14 - 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