Skip to content

schaeren/iot-raspi-mqtt-sub-01

Repository files navigation

iot-raspi-mqtt-sub-01

This MQTT client application subscribes for messages from a MQTT broker (Mosquitto). The connection to the broker uses TLS 1.3 and client certificates. This example runs directly on the Raspberry Pi (Standard or Zero 2 W) and is implemented using MQTTnet, .NET and C#, but can also be used on any other system that supports .NET Core.

The corresponding publisher application can be found at https://github.com/schaeren/iot-raspi-mqtt-pub-01

Tested on the following target system:

  • Raspberry Pi 4 Model B or Raspberry Pi Zero 2 W
  • Pi OS 32-bit or 64-bit
  • Mosquitto MQTT broker.

Development environment:

  • Visual Studio Code with .NET SDK 6,
  • .NET 6 and Visual Studio Remote Debugger on Raspberry Pi.

Documentation: