Skip to content

Files

Latest commit

 

History

History
75 lines (50 loc) · 2.97 KB

concepts-developer-guide-service.md

File metadata and controls

75 lines (50 loc) · 2.97 KB
title description author ms.author ms.date ms.topic ms.service services zone_pivot_groups
Service developer guide - IoT Plug and Play | Microsoft Docs
Description of IoT Plug and Play for service developers
dominicbetts
dobett
10/01/2020
conceptual
iot-develop
iot-develop
programming-languages-set-ten

IoT Plug and Play service developer guide

IoT Plug and Play lets you build IoT devices that advertise their capabilities to Azure IoT applications. IoT Plug and Play devices don't require manual configuration when a customer connects them to IoT Plug and Play-enabled applications.

IoT Plug and Play lets you use devices that have announced their model ID with your IoT hub. For example, you can access the properties and commands of a device directly.

To use an IoT Plug and Play device that's connected to your IoT hub, one of the IoT service SDKs:

Service SDKs

Use the Azure IoT Service SDKs in your solution to interact with devices and modules. For example, you can use the service SDKs to read and update twin properties and invoke commands. Supported languages include C#, Java, Node.js, and Python.

The service SDKs let you access device information from a solution, such as a desktop or web application. The service SDKs include two namespaces and object models that you can use to retrieve the model ID:

  • Iot Hub service client. This service exposes the model ID as a device twin property.

  • Digital Twins client. The new Digital Twins API operates on Digital Twins Definition Language (DTDL) model constructs such as components, properties, and commands. The Digital Twin APIs make it easier for solution builders to create IoT Plug and Play solutions.

:::zone pivot="programming-language-csharp"

[!INCLUDE iot-pnp-service-devguide-csharp]

:::zone-end

:::zone pivot="programming-language-java"

[!INCLUDE iot-pnp-service-devguide-java]

:::zone-end

:::zone pivot="programming-language-javascript"

[!INCLUDE iot-pnp-service-devguide-node]

:::zone-end

:::zone pivot="programming-language-python"

[!INCLUDE iot-pnp-service-devguide-python]

:::zone-end

Next steps

Now that you've learned about device modeling, here are some additional resources: