Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.33 KB

CONTRIBUTING.md

File metadata and controls

34 lines (27 loc) · 1.33 KB

Contributing

You have the choice between using Visual Studio or VS Code. The preffered solution is to use VS Code using devcontainer. The devcontainer install all the necessary extensions and also pull up a mosquitto mqtt brocker for development purposes. For a quick view what is happening in you MQTT you can use the VSMQTT extension and subscribe with # to see all the topics on the broker.

Settings

Use Secrets Manager to create your user settings. For VS Code the .NET Core User Secrets is preinstalled so that you can right click the csproj file to change your settings.

The mqtt settings are already present in the appsettings.development.json to connect to the dev MQTT brocker. If you want to use the dev instance don't override the settings in your user secrets file for the MQTT part.

Using dev MQTT:

{
  "Lupusec:Url": "e.g. http://192.168.2.3",
  "Lupusec:Password": "e.g. supersecretpassword",
  "Lupusec:Login": "e.g. johndoe"
}

Using your own MQTT:

{
  "Mqtt:Server": "e.g. 192.168.2.2",
  "Mqtt:Password": "e.g. supersecretpassword",
  "Mqtt:Login": "e.g. johndoe",
  "Lupusec:Url": "e.g. http://192.168.2.3",
  "Lupusec:Password": "e.g. supersecretpassword",
  "Lupusec:Login": "e.g. johndoe"
}