Skip to content

Latest commit

 

History

History
78 lines (47 loc) · 3.25 KB

readme.md

File metadata and controls

78 lines (47 loc) · 3.25 KB

Microsoft Azure IoT device SDK for .NET

The Microsoft Azure IoT device SDK for .NET facilitates building devices and applications that connect to and are managed by Azure IoT Hub services.

The library is available as a NuGet package for you include in your own development projects. This repository contains documentation and samples to help you get started using this SDK.

Features

  • Sends event data to Azure IoT based services.
  • Maps server commands to device functions.
  • Batches messages to improve communication efficiency.
  • Supports pluggable transport protocols.

Note: Currently, Microsoft.Azure.Devices.Client.WinRT doesn't support MQTT protocol.

For example,calling DeviceClient deviceClient = DeviceClient.CreateFromConnectionString(DeviceConnectionString, TransportType.Mqtt); will result in "Mqtt protocol is not supported" exception.

Note : Currently, Microsoft.Azure.Devices.Client.PCL only supports HTTPS protocol.

For example, calling DeviceClient deviceClient = DeviceClient.CreateFromConnectionString(DeviceConnectionString, TransportType.Amqp); will result in "Amqp protocol is not supported" exception.

Application development guidelines

For more information on how to use this library refer to the documents below:

Other useful documents include:

Folder structure of repository

All the .NET device specific resources are located in the csharp folder.

/build

This folder contains build scripts for the .NET client libraries and samples.

/doc

This folder contains setup and getting started documents for .NET.

/Microsoft.Azure.Devices.Client /Microsoft.Azure.Devices.Client.WinRT

These folders contain the .NET client library source code.

The Microsoft.Azure.Devices.Client.WinRT project is for building the UWP (Universal Windows Platform) version of the client library. For more information about the UWP version of this library refer to the FAQ.

These projects are useful if you want to modify or extend the .NET libraries.

/NuGet

This folder contains scripts for building the NuGet package that contains the library components.

/samples

This folder contains various .NET samples that illustrate how to use the client library.

/iothub_csharp_client.sln

This Visual Studio solution contains the client library and sample projects.

API reference

API reference documentation can be found online at https://msdn.microsoft.com/library/microsoft.azure.devices.aspx.