Skip to content

hardwario/hio-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Status License

HARDWARIO .NET SDK

HARDWARIO .NET SDK project is here to help you with creating your custom application around the HARDWARIO ecosystem of IoT devices and services.

This SDK focuses to .NET C# developers mainly, but thanks to the simplicity and readibility of the C# it can help to programmers who uses different languages as well.

SDK consists of several libraries and example projects which will be described below. Here is screenshot of one of the example application you can find in this SDK:

HIO-Monitor-new-netsdk

Please note that HARDWARIO .NET SDK is still under the development. We are happy to receive tips and bugreports if you would like to help us.

Requirements

HARDWARIO .NET SDK is created in Visual Studio 2022 (tested in actual Version 17.12.1) with .NET 8 (updated to .NET 9 is in roadmap).

Compilation and building MAUI applications for Android requires Installlation of Android SDK.

We recommend to use Windows machine for the development, but project can be build on MacOS and Linux as well because the .NET 8 is multiplatform framework. Applications written in .NET 8 C# can run on all platforms (Windows, MacOS, Linux). MAUI Applications can run also on Android and iOS devices.

UI Library uses Radzen Component Library. More information about the using this component library you can find in Readme file for Hio-DotNet UI Component Library.

WebAssembly applications demos are part of the demo projects. You can run them in most of the modern web browsers without having the active web server. You need just webhosting for this type of applications. We usually test them in Chrome browser or Edge browser.

First Steps

Cloning the repository

First step is to clone the repository to some local folder in your computer. You can do it with the command:

git clone https://github.com/hardwario/hio-dotnet.git

Then you can enter the project folder:

cd hio-dotnet

where you will find the hio-dotnet.sln solution file. This file can be opened in the Visual Studio 2022.

Build the demo console application

There are multiple demo applications. One of them is simple console application with multiple partial demos how to use parts of the SDK. All partial demos are turned off in default and you need to allow one or multiple of them by setting the proper variable to "true". Then you can run the build with command:

dotnet run --project "hio-dotnet.Demos.SimpleConsoleApp/hio-dotnet.Demos.SimpleConsoleApp.csp
roj" --configuration Debug

As it is written above, the project has no sub-demo allowed by default so if you will not change it in the Program.cs it will just write this (in case you are running it on Windows machine):

Running on Windows
Program ends. Goodbye

To discover more about the parts of the Simple Console App Demo Please Continue with reading Here.

Projects in the Solution

There are multiple projects in the solution:

Demos

APIs

UI

There are two basic UI Components library project in the HARDWARIO .NET SKD. One shows how you can create own wrappers for components to create own component library from scratch. Second (main) uses already existing component library called Radzen to simplify the creating nice smooth responsive UIs.

Other Projects

Test project

License

This project is under standard MIT license.

Contribution

We welcome any contribution to the project. There are multiple ways how to contribute:

  • Testing and creating issues for bugs or features.
  • Improving the library with pull requests
  • Bringing ideas for new features

Do you need help?

If you need help please feel free to contact us via form on our website.