mirror of
https://github.com/ntochtermann/IoTLab.git
synced 2026-08-03 08:33:10 +00:00
No description
- C# 96%
- Shell 3.6%
- Dockerfile 0.4%
* 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> |
||
|---|---|---|
| .devcontainer | ||
| .vscode | ||
| docs | ||
| src | ||
| .gitignore | ||
| Directory.Build.props | ||
| Directory.Packages.props | ||
| global.json | ||
| README.md | ||
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
- Node.js LTS
- Install Dev Containers extension in VSCode or the Dev Container CLI.
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:
- Open the project folder in VSCode.
- Press
F1to open the command palette. - Type
Dev Containers: Reopen in Containerand select it. - 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
- Install .NET 10 SDK on your machine.
Direct Usage: Debug and Run
Direct Usage: Visual Studio Code
To debug and run the solution in Visual Studio Code, follow these steps:
- Open the project folder in VSCode.
- Press
F5to start debugging.
Direct Usage: Command Line
To debug and run the solution using the .NET CLI, follow these steps:
- Open a terminal and navigate to the specific project directory (e.g. /src/MqttSenders).
- Run the following command to start the project:
dotnet run