MQTT

This week, you will learn how to communicate by using a protocol that is called MQTT. Like HTTP, it is usually executed on top of TCP/IP, but you will notice that this protocol is very different from HTTP, in many respects. That's one of the reasons why we look at it. Once you have understood HTTP and MQTT, you have covered a lot of mechanisms, properties, patterns and architectures that are used in communication protocols.

Learning Goals

After this week, you will be able to:

  • Create an MQTT client in Python.
  • Publish and receive messages, including data payload.
  • Select proper quality-of-service levels.
  • Design MQTT topics for applications.

Preparation

Go through the following preparation material before we meet in class:

Teamwork

In the lab, go through the following activities with your team:

Avsluttende refleksjon

Etter hver uke skal du gå gjennom en kort individuell refleksjon rund det du har lært i uken. Du skal tenke på én ting du har lært best, og én ting som var vanskelig. Dette hjelper ikke bare deg selv, men gir oss også verdifull innsikt. Fyll ut skjema for denne uken her:

If the form does not open properly or you get an error message, try right-clicking the link and opening it in a new tab or window.

Edit this page