No description
  • C# 96%
  • Shell 3.6%
  • Dockerfile 0.4%
Find a file
Nick b900fa8ecf
Lab3 device connectivity (#3)
* update launch configuration to target .NET 10.0

* add lab 2

* add missing package

* fix solution file

* add lab 3

* add connector

---------

Co-authored-by: Felix Burkhard <felix.burkhard@posteo.net>
Co-authored-by: Nick Tochtermann <nick.tochtermann@proton.me>
2026-04-28 17:15:24 +02:00
.devcontainer change line endings 2026-03-16 15:34:26 +00:00
.vscode Lab2 stream processing (#2) 2026-04-26 20:49:43 +02:00
docs Lab3 device connectivity (#3) 2026-04-28 17:15:24 +02:00
src Lab3 device connectivity (#3) 2026-04-28 17:15:24 +02:00
.gitignore Inital commit 2026-03-15 19:56:48 +01:00
Directory.Build.props Inital commit 2026-03-15 19:56:48 +01:00
Directory.Packages.props Lab3 device connectivity (#3) 2026-04-28 17:15:24 +02:00
global.json Inital commit 2026-03-15 19:56:48 +01:00
README.md Inital commit 2026-03-15 19:56:48 +01:00

README

This project is a sample solution for sending and receiving MQTT messages using .NET 10. The solution consists of two projects:

  • MqttSenders: A console application that sends MQTT messages to a broker.
  • MqttReceivers: A console application that receives MQTT messages from a broker.

Prerequisites

Setup Environment

This project can be set up using either in GitHub Codespaces, Dev Containers, or directly with .NET 10.

GitHub Codespaces

GitHub Codespaces: Usage

Dev Containers

Dev Containers: Prerequisites

Dev Container CLI:

npm install -g @devcontainers/cli

Dev Containers: Usage

Dev Containers: Visual Studio Code

To start a Dev Container in VSCode, follow these steps:

  1. Open the project folder in VSCode.
  2. Press F1 to open the command palette.
  3. Type Dev Containers: Reopen in Container and select it.
  4. VSCode will build the container and reopen the project inside the container.

For more information, refer to the Dev Containers documentation.

Dev Containers: CLI

To start a Dev Container using the CLI, follow these steps:

Run the following command in the root directory:

devcontainer up 

Direct Usage

Direct Usage: Prerequisites

Direct Usage: Debug and Run

Direct Usage: Visual Studio Code

To debug and run the solution in Visual Studio Code, follow these steps:

  1. Open the project folder in VSCode.
  2. Press F5 to start debugging.

Direct Usage: Command Line

To debug and run the solution using the .NET CLI, follow these steps:

  1. Open a terminal and navigate to the specific project directory (e.g. /src/MqttSenders).
  2. Run the following command to start the project:
dotnet run