Internet of Things
Hands-on Session 03
Prof. Dr. Oliver Hahm
2025-01-05
Agenda
AWS Academy
AWS IoT Core
MQTT-SN
AWS Academy
AWS Academy – Invitation Mail
AWS Academy – Account Registration
AWS Academy – Learner Lab
AWS Academy – Learner Lab Start
AWS IoT Core
Getting Started
Visit
https://docs.aws.amazon.com/iot/latest/developerguide/what-is-aws-iot.html
to learn about AWS IoT Core
AWS IoT Core offers a MQTT Broker
Get accustomed with the AWS IoT Device SDK in the language of your choice:
Node.js
Python
Java
Develop two Devices (Clients)
The first client should publish events
Publish events for at least two different topics
sensor/1-237/temperature
sensor/1-237/humidity
The published values should vary within a reasonable range (e.g., temperature between 15°C and 30°C, humidity between 30% and 85%)
The second client should subscribe to the topics above
If the values for temperature and humidity are above or below a certain threshold, the client should trigger a warning
The warning should published to the topic
sensor/1-237/alert
MQTT-SN
MQTT-SN Broker or Gateway
The AWS IoT Core MQTT Broker only supports MQTT (over TCP)
TCP is often too heavy-weight for constrained IoT Devices
➡️ MQTT-SN (over UDP) is often preferrable
Broker or gateway for MQTT-SN:
RSMB: Really Small Message Broker
Gateway only:
Paho Eclipse Gateway
Connect a Constrained Device
Modify the first client in a way that it uses MQTT-SN instead of MQTT
The second client should remain untouched
If you haven’t configured a Gateway, you need a dedicated forwarder
MQTT-SN clients are provided by RSMB and Paho