| platform | linux |
|---|---|
| device | toradex-module |
| language | csharp |
About this document
This document describes how to how to setup Mono and run the Device Client HTTPS Sample application on a Toradex module with Linux. This multi-step process includes:
- Configuring Azure IoT Hub
- Registering your IoT device
- Build and deploy Azure IoT SDK on device
You should have the following items ready before beginning the process:
- Setup your IoT hub
- Provision your device and get its credentials
- Build DeviceClientHttpsSample C# sample application
- Ensure the module is flashed with Toradex V2.5 Linux image or newer.
-
Insert the module into a compatible carrier board. Power on the system and connect to the internet.
-
Use the command line to install Mono and necessary dependencies:
opkg update opkg install mono mono-dev ca-certificates -
Import trusted root certificates:
mono /usr/lib/mono/4.5/mozroots.exe --import --sync
-
Copy the the contents of the compiled Device Client HTTPS Sample application's bin directory to the module.
-
Execute the application with Mono:
mono DeviceClientHttpsSample.exe -
See Manage IoT Hub to learn how to observe the messages IoT Hub receives from the Device Client HTTPS Sample application and how to send cloud-to-device messages to the Device Client HTTPS Sample application.