Internet of Things

Hands-on Session 03

Prof. Dr. Oliver Hahm

2025-01-05

AWS Academy

AWS Academy – Invitation Mail

AWS Academy – Account Registration

AWS Academy – Learner Lab

AWS Academy – Learner Lab Start

AWS IoT Core

Getting Started

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:
  • Gateway only:

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