Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 2.3 KB

File metadata and controls

74 lines (51 loc) · 2.3 KB
platform linux
device toradex-module
language csharp

Run a simple Csharp sample on Toradex modules running Linux


Table of Contents

Introduction

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

Step 1: Prerequisites

You should have the following items ready before beginning the process:

Step 2: Prepare your Device

  1. Insert the module into a compatible carrier board. Power on the system and connect to the internet.

  2. Use the command line to install Mono and necessary dependencies:

    opkg update
    opkg install mono mono-dev ca-certificates
    
  3. Import trusted root certificates:

    mono /usr/lib/mono/4.5/mozroots.exe --import --sync
    

Step 3: Build and Run the sample

  1. Copy the the contents of the compiled Device Client HTTPS Sample application's bin directory to the module.

  2. Execute the application with Mono:

    mono DeviceClientHttpsSample.exe
    
  3. 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.