The mobile application samples that use the Digi IoT Library for .NET MAUI are located in Digi’s digi-iot-maui repository on GitHub. If you have not done so yet, the first step before working with a Digi IoT Library for .NET MAUI example is to clone the repository.
Clone the repository
The first step to open an example is to clone the repository where the examples are located. Follow these steps to do so:
-
Open Visual Studio.
-
Choose the File > Clone Repository option from the main menu or select the Clone a repository option if you are in the Start window.
-
In the Repository location field, type or paste the URL of the Digi IoT Library for .NET MAUI repo: https://github.com/digidotcom/digi-iot-maui.git.
-
Choose the Local path where the repository will be cloned, then click Clone.
-
Next, Visual Studio loads the solution from the repository by using the Folder View in Solution Explorer.
-
Double-click the DigiIoT.sln file from the Solution Explorer - Views to open it.
Launch the Digi IoT Library for .NET MAUI example
Once the DigiIoT solution from the digi-iot-maui repository is open, you can build and launch any of the examples it contains. Remember that examples are located in the examples folder of the solution. Check Examples for more information about them.
To launch the example, you must first select the desired one and the target platform from the toolbar.
| If you are launching the application in iOS, remember to connect your iOS device to your Mac computer and then Pair to Mac. |
Then, select the Debug > Start Debugging option from the main menu.
For more information about the example being run, view its README.md file.