Add "Plug and Play" to your IoT Solutions

Published 07-29-2020 08:00 AM 5,486 Views

Hi IoT developers! We've refreshed the IoT Plug and Play Preview with new features and enhancements. You can get started today preparing your devices and applications for the next generation of IoT solutions enabled by IoT Plug and Play. Specifically, this release enables device developers and OEM’s to begin building devices they can certify for IoT Plug and Play ahead of the general availability launch. Furthermore, solution developers can begin creating IoT Plug and Play aware solutions using the latest SDKs with the updated IoT Plug and Play specifications that will seamlessly integrate with Azure IoT services and solutions from our partners.

 

The new IoT Plug and Play features dramatically enhances the developer experience for both device developers and solution builders. Device developers can declare their device model to IoT Hub at connection time using the open source SDKs that are production ready. Solution builders can develop solutions that automatically understand the device and start interacting with the devices, all without writing any embedded code.

 

Existing devices already connecting to and using Azure IoT communication patterns (Device Twins, Direct Methods, Telemetry) can be easily upgraded with minimal code changes. Device developers just need to describe the device capabilities in a model and include this model’s identifier in the connection string. On the solution side, developers can retrieve the model from its identifier and use it to make their applications dynamically recognize devices capabilities and adapt to these, delivering the next generation of IoT solutions.

 

IoT Plug and Play and Azure Digital Twins are both based on the Digital Twins Definition Language (DTDL) that is open to the community and is based on open W3C standards such as JSON-LD and RDF, which enables easier adoption across services and tooling.

 

IoT Plug and Play simplifies IoT solution development

Device interactions with an IoT solution can be described in terms of telemetry, properties, and commands using the Digital Twins Definition Language (DTDL) version 2, the same language used by Azure Digital Twins (more on this later). These communication patterns are implemented in the MQTT protocol that's broadly used in the industry to connect IoT devices. With IoT Plug and Play we go one step further by modeling device communication patterns with an open language. Our goal is to improve IoT solutions development productivity by enabling Model-driven workflows such as code generation, automatic validation, and dynamic UI.

 

Developers can use the Azure IoT device SDKs available in C, .NET, Java, Python and Node, or any MQTT library to interact with IoT Hub in a secure and reliable way. All of these have been updated to support IoT Plug and Play.

 

Let’s dive into what’s new and how to get started!

 

New Azure IoT Hub features

Azure IoT Hub is a Cloud service that enables secure and scalable device connections, communication, and integration with IoT solutions. Think of it as your device gateway. IoT Hub handles authentication of devices, establishes bidirectional communication, and offers several types of interactions with devices such as telemetry, device twin state synchronization, and direct methods, all built on top of the IoT Hub communication protocol.

 

However, these patterns on their own aren’t defining a shared convention between device and cloud application. Device developers and solution developers need to agree on a convention defining what’s in the telemetry payload, what’s the data format, what commands are supported by devices, and what properties they expose. This is exactly what IoT Plug and Play does. Here is how this all comes together.

2.png

 

For the Device developer:

  1. Using latest enhanced tools and SDKs (more details below on what’s new), the Device developer will author a device model using DTDL.
  2. To enable Model ID registration, IoT Hub accepts a new parameter in the MQTT Connection packet with the Model ID sent by the device and makes this Model ID available to cloud applications. Once the model is defined, the device developer just needs to add the Model ID announcement in the connection message and ensure the device implementation matches the model. With this Model ID, IoT Hub will be able to identify devices that support IoT Plug and Play and enable to seamlessly integrate them into IoT Plug and Play enabled solutions (see below).
  3. Device developers can share their devices’ models with solution developers directly or through a public or private repository, with the corresponding Model IDs.
  4. Device builders can certify their devices for solution builders to get the guarantee that devices are indeed supporting Plug and Play and can seamlessly be integrated into next generation IoT solutions.

For the solution developer:

  1. Solution builders can retrieve devices’ Model ID from IoT hub.
  2. With the Model ID, they will acquire and parse the matching IoT Plug and Play model for the device from the model repository or other sharing mechanism agree upon with the device builder.
  3. With the IoT Plug and Play model, solutions can dynamically adjust their user interface depending on the devices connecting.

IoT Plug and Play Preview is currently available in Japan East, Central US, and North Europe.

 

Device SDKs are production ready

As of today, all Azure IoT Hub device SDKs are already updated, and support IoT Plug and Play. Here are the steps required to enable IoT Plug and Play on any device:

  1. Create the model describing the device interactions
  2. Implement the device model including sharing the Model ID during the connection and using the Azure IoT communication patterns (Device Twins, Direct Methods, Telemetry)
  3. Validate the device’s implementation of the model using a tool to interact with the device (Azure IoT Explorer, IoT Plug and Play CLI, REST APIs, Service SDKs)

We’ve got some good news for device developers: even though IoT Plug and Play is still in Preview, device builders can use these SDKs to build certification ready devices starting today. This means we won’t make any further breaking changes to the SDKs and all devices created today will work without any modification when IoT Plug and Play becomes generally available (GA).

 

New features for solution builders

To fulfill the promise of the Digital Twins vision, IoT Plug and Play offers APIs compatible with Azure Digital Twins (ADT), allowing any IoT Plug and Play device to seamlessly integrate into Digital Twins applications.

 

This new preview REST API can be consumed by the Azure Digital Twins Service SDKs, available for Node and Python. Support for Java and .NET will be added soon. Furthermore, Azure IoT Hub can produce Digital Twins change notifications.

 

These features enable the alignment of IoT Hub with ADT to accelerate the creation of modern smart environmental solutions.

 

Developer Experience

To create device models, developers can use the Visual Studio extensions for DTDL, available for VSCode and Visual Studio 2019, with all expected features such as Intellisense and automatic validation. Read more about this extension in this blog post announcement.

 

Because IoT Plug and Play exposes REST APIs, you can easily extend your own tooling, scripts, and development environments. In fact, the Azure IoT Explorer tool, the Visual Studio and Code extensions, and the Azure CLI IoT extension are all taking full advantage of the IoT Plug and Play REST APIs.

 

We have samples and docs for all languages available in our new released documentation on docs.microsoft.com/azure/iot-pnp to help you learn IoT Plug and Play concepts.

 

Hello IoT Plug and Play World !!

How about we walk you through how this all looks?

 

Let’s create a simple device using the .NET SDK, (other languages are available in the Quickstarts) that reports the current memory available as a telemetry data point, the frequency of this signal will be configurable by a writable property that can be set from the solution side.

 

First, we create the DTDL interface, applying a model-first approach, and then we implement a device in .NET that produces messages that are compatible with the IoT Plug and Play convention

 

We’ll use the DTDL VSCode extension to create the interface using the command palette: DTDL: CreateInterface, and replace the default contents with the telemetry and property elements.

 

 

{
  "@context": "dtmi:dtdl:context;2",
  "@id": "dtmi:com:example:mydevice;1",
  "@type": "Interface",
  "displayName": "mydevice",
  "contents": [
    {
      "@type": "Telemetry",
      "name": "workingSet",
      "schema": "double"
    },
    {
      "@type": "Property",
      "name": "refreshInterval",
      "schema": "integer"
      "writable" : true
    }
  ]
}

 

 

To create the device code we use .NET and the Microsoft.Azure.Devices.Client/1.27.0 NuGet package.

To initialize the DeviceClient we need the Device Connection String and the Model Id

 

 

string modelId = "dtmi:com:example:mydevice;1";
string connectionString = "<deviceConnectionString>";
int    refreshInterval = 5;
var client = DeviceClient.CreateFromConnectionString(connectionString, 
                      TransportType.Mqtt, 
                      new ClientOptions() { ModelId = modelId });
Console.WriteLine("client connected");

 

 

Let’s start by reading the refreshInterval from the desired properties

 

 

var twin = await client.GetTwinAsync();
if (twin.Properties.Desired.Contains(nameof(refreshInterval)))
{
  JValue refreshIntervalProperty = twin.Properties.Desired[nameof(refreshInterval)];
  refreshInterval = refreshIntervalProperty.Value<int>();
  Console.WriteLine("Found refreshInterval:" + refreshInterval);
}

 

 

And sending the telemetry in a loop.

 

 

while (true)
{
  var serializedTelemetry = JsonConvert.SerializeObject(
    new { workingSet = Environment.WorkingSet }
  );
  var message = new Message(Encoding.UTF8.GetBytes(serializedTelemetry));
  message.ContentType = "application/json";
  message.ContentEncoding = "utf-8";
  await client.SendEventAsync(message);
  Console.WriteLine(serializedTelemetry);
  await Task.Delay(refreshInterval * 1000);
}

 

 

Finally, we want to subscribe to any desired property update. Note that the device must report back if the desired property was applied. The extra properties are described in the IoT Plug and Play Convention.

 

 

await client.SetDesiredPropertyUpdateCallbackAsync(async (desired, ctx) =>
{
  if (desired.Contains(nameof(refreshInterval)))
  {
    JValue refreshIntervalProp = desired[nameof(refreshInterval)];
    refreshInterval = refreshIntervalProp.Value<int>();
    Console.WriteLine("Received refreshInterval:" + refreshInterval);
    TwinCollection reportedProperties = new TwinCollection();
    TwinCollection ackProps = new TwinCollection();
    ackProps["value"] = refreshInterval;
    ackProps["ac"] = 200;
    ackProps["av"] = desired.Version;
    ackProps["ad"] = "desired property received";
    reportedProperties[nameof(refreshInterval)] = ackProps;

    await client.UpdateReportedPropertiesAsync(reportedProperties);
  }
}, null);

 

 

Use the service SDK to add IoT Plug and Play support in your solutions

Our service SDKs allow you to easily take advantage of IoT Plug and Play in your IoT solutions. Let us show you how.

 

IoT Solutions use the Azure SDK to interact with the devices using IoT Hub’s patterns (Telemetry, Device Twins and Direct Methods). The new Azure IoT Hub Digital Twins service SDKs lets you retrieve the Model Id announced by the device.

 

This time we are going to use the Node.js service SDK  from NPM.

 

 

const dt = require('azure-iot-digitaltwins-service') // preview
const cs = '<HubConnectionString>'
const dtclient = new dt.DigitalTwinServiceClient(new dt.IoTHubTokenCredentials(cs))
dtclient.getDigitalTwin('mxchip1')
  .then(dtresp => {
    if (dtresp) {
      const twin = dtresp._response.parsedBody 
      const modelId = twin.$metadata.$model
      console.log(modelId)
    }
  })

 

 

With the Model Id available, your custom solution can make smart decisions about how to interact with the device. If the device implements the model Id we know of, we can safely update the refreshInterval property using the new Digital Twins patch api.

 

 

if (modelId === 'dtmi:com:example:mydevice;1') {

  const patch = [{
      op: 'add',
      path: '/refreshInterval',
      value: 3
  }]

  dtclient.updateDigitalTwin(deviceId, patch, dtresp.eTag)
    .then(patchResp => {
      console.log(patchResp)
    })
}

 

 

If the .NET device simulator is still running you should see how the device reacts.

Full code and sample model available in this gist

 

Use Azure IoT Explorer to validate the device implementation

The last step is to validate the device implementation against its Model. For this, we use Azure IoT Explorer which has been updated to support IoT Plug and Play from version 0.11.1.

 

To connect the Azure IoT Explorer tool to IoT Hub, you need the admin IoT Hub connection string. When you’re connected, go to the devices section and add a new device. When you have the device id registered, you can grab the connection string and replace in the first code snippet we created before for the device.

 

4.png

 

Azure IoT Explorer can load your models from a local folder. In the main screen – Home, select IoT Plug and Play settings and set the source to a local folder where your DTDL model files are located.

Now, when you run the device code (remember to update the connection string), Azure IoT Explorer will populate the IoT Plug and Play view with a default UI built from the model.

 

See what happened here in the Azure IoT Explorer? Its UI adapted to the device model without any need for code change or configuration. Isn’t that convenient?

 

5.png

 

You can now inspect telemetry, properties and interact with the device.

 

Let’s update the refreshInterval value from the Azure IoT Explorer UI and see the bi-directional communication with the device in action.

 

6.png

 

IoT Central will use IoT Plug and Play

Integration with IoT Central is a key component of the IoT Plug and Play value proposition. By the time IoT Plug and Play becomes generally available, IoT Central will be updated to fully support the new capabilities and conventions in full alignment with DTDL v2, additionally all certified IoT Plug and Play devices will automatically work with Central. Stay tuned for more updates on this soon.

 

Next Steps

Don't miss the latest IoT Show with more live demos connecting Things to Azure using IoT Plug and Play, check it out in Channel9 and YouTube

 

 

Our team is eager to see how you will take advantage of IoT Plug and Play in your IoT devices and solutions. We are also looking forward to getting your feedback. You can find us in our open source GitHub Repos for the SDKs, or you can simply engage in a conversation right here in the IoT Tech Community commenting below.

1 Comment
Occasional Contributor
This is great!
%3CLINGO-SUB%20id%3D%22lingo-sub-1548531%22%20slang%3D%22en-US%22%3EAdd%20%22Plug%20and%20Play%22%20to%20your%20IoT%20Solutions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1548531%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20IoT%20developers!%20We've%20refreshed%20the%20IoT%20Plug%20and%20Play%20Preview%20with%20new%20features%20and%20enhancements.%20You%20can%20get%20started%20today%20preparing%20your%20devices%20and%20applications%20for%20the%20next%20generation%20of%20IoT%20solutions%20enabled%20by%20IoT%20Plug%20and%20Play.%20Specifically%2C%20this%20release%20enables%20device%20developers%20and%20OEM%E2%80%99s%20to%20begin%20building%20devices%20they%20can%20certify%20for%20IoT%20Plug%20and%20Play%20ahead%20of%20the%20general%20availability%20launch.%20Furthermore%2C%20solution%20developers%20can%20begin%20creating%20IoT%20Plug%20and%20Play%20aware%20solutions%20using%20the%20latest%20SDKs%20with%20the%20updated%20IoT%20Plug%20and%20Play%20specifications%20that%20will%20seamlessly%20integrate%20with%20Azure%20IoT%20services%20and%20solutions%20from%20our%20partners.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20new%20IoT%20Plug%20and%20Play%20features%20dramatically%20enhances%20the%20developer%20experience%20for%20both%20device%20developers%20and%20solution%20builders.%20Device%20developers%20can%20declare%20their%20device%20model%20to%20IoT%20Hub%20at%20connection%20time%20using%20the%20open%20source%20SDKs%20that%20are%20production%20ready.%20Solution%20builders%20can%20develop%20solutions%20that%20automatically%20understand%20the%20device%20and%20start%20interacting%20with%20the%20devices%2C%20all%20without%20writing%20any%20embedded%20code.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExisting%20devices%20already%20connecting%20to%20and%20using%20Azure%20IoT%20communication%20patterns%20(Device%20Twins%2C%20Direct%20Methods%2C%20Telemetry)%20can%20be%20easily%20upgraded%20with%20minimal%20code%20changes.%20Device%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Ed%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eevelopers%20just%20need%20to%20describe%20the%20device%20capabilities%20in%20a%20model%20and%20include%20this%20model%E2%80%99s%20identifi%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Ee%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Er%20in%20the%20connection%20string.%20On%20the%20solution%20side%2C%20developers%20can%20retrieve%20the%20model%20from%20its%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eidentifier%20and%20use%20it%20to%20make%20their%20applications%20dynamically%20recognize%20devices%20capabilities%20and%20adapt%20to%20these%2C%20delivering%20the%20next%20generation%20of%20IoT%20solutions.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EIoT%20Plug%20and%20Play%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fdigital-twins%2Fabout-digital-twins%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Digital%20Twins%3C%2FA%3E%20are%20both%20based%20on%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fopendigitaltwins-dtdl%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EDigital%20Twins%20Definition%20Language%3C%2FA%3E%20(DTDL)%20that%20is%20open%20to%20the%20community%20and%20is%20based%20on%20open%20W3C%20standards%20such%20as%20JSON-LD%20and%20RDF%2C%20which%20enables%20easier%20adoption%20across%20services%20and%20tooling.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1297323241%22%20id%3D%22toc-hId--1297323241%22%20id%3D%22toc-hId--1297210871%22%3EIoT%20Plug%20and%20Play%20simplifies%20IoT%20solution%20development%3C%2FH2%3E%0A%3CP%3EDevice%20interactions%20with%20an%20IoT%20solution%20can%20be%20described%20in%20terms%20of%20telemetry%2C%20properties%2C%20and%20commands%20using%20the%20Digital%20Twins%20Definition%20Language%20(%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fdtdl%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EDTDL%3C%2FA%3E)%20version%202%2C%20the%20same%20language%20used%20by%20Azure%20Digital%20Twins%20(more%20on%20this%20later).%20These%20communication%20patterns%20are%20implemented%20in%20the%20MQTT%20protocol%20that's%20broadly%20used%20in%20the%20industry%20to%20connect%20IoT%20devices.%20With%20IoT%20Plug%20and%20Play%20we%20go%20one%20step%20further%20by%20modeling%20device%20communication%20patterns%20with%20an%20open%20language.%20Our%20goal%20is%20to%20improve%20IoT%20solutions%20development%20productivity%20by%20enabling%20Model-driven%20workflows%20such%20as%20code%20generation%2C%20automatic%20validation%2C%20and%20dynamic%20UI.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDevelopers%20can%20use%20the%20Azure%20IoT%20device%20SDKs%20available%20in%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fazure%2Fazure-iot-sdk-c%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EC%3C%2FA%3E%2C%20.%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fazure%2Fazure-iot-sdk-csharp%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ENET%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fazure%2Fazure-iot-sdk-java%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EJava%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fazure%2Fazure-iot-sdk-python%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EPython%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fazure%2Fazure-iot-sdk-node%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ENode%3C%2FA%3E%2C%20or%20any%20MQTT%20library%20to%20interact%20with%20IoT%20Hub%20in%20a%20secure%20and%20reliable%20way.%20All%20of%20these%20have%20been%20updated%20to%20support%20IoT%20Plug%20and%20Play.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%E2%80%99s%20dive%20into%20what%E2%80%99s%20new%20and%20how%20to%20get%20started!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1190189592%22%20id%3D%22toc-hId-1190189592%22%20id%3D%22toc-hId-1190301962%22%3ENew%20Azure%20IoT%20Hub%20features%3C%2FH2%3E%0A%3CP%3EAzure%20IoT%20Hub%20is%20a%20Cloud%20service%20that%20enables%20secure%20and%20scalable%20device%20connections%2C%20communication%2C%20and%20integration%20with%20IoT%20solutions.%20Think%20of%20it%20as%20your%20device%20gateway.%20IoT%20Hub%20handles%20authentication%20of%20devices%2C%20establishes%20bidirectional%20communication%2C%20and%20offers%20several%20types%20of%20interactions%20with%20devices%20such%20as%20telemetry%2C%20device%20twin%20state%20synchronization%2C%20and%20direct%20methods%2C%20all%20built%20on%20top%20of%20the%20IoT%20Hub%20communication%20protocol.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20these%20patterns%20on%20their%20own%20aren%E2%80%99t%20defining%20a%20shared%20convention%20between%20device%20and%20cloud%20application.%20Device%20developers%20and%20solution%20developers%20need%20to%20agree%20on%20a%20convention%20defining%20what%E2%80%99s%20in%20the%20telemetry%20payload%2C%20what%E2%80%99s%20the%20data%20format%2C%20what%20commands%20are%20supported%20by%20devices%2C%20and%20what%20properties%20they%20expose.%20This%20is%20exactly%20what%20IoT%20Plug%20and%20Play%20does.%20Here%20is%20how%20this%20all%20comes%20together.%3C%2FP%3E%0A%3CP%20align%3D%22center%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%222.png%22%20style%3D%22width%3A%20800px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208573i3BCD7164BCC2E937%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%222.png%22%20alt%3D%222.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20the%20Device%20developer%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EUsing%20latest%20enhanced%20tools%20and%20SDKs%20(more%20details%20below%20on%20what%E2%80%99s%20new)%2C%20the%20Device%20developer%20will%20author%20a%20device%20model%20using%20DTDL.%3C%2FLI%3E%0A%3CLI%3ETo%20enable%20Model%20ID%20registration%2C%20IoT%20Hub%20accepts%20a%20new%20parameter%20in%20the%20MQTT%20Connection%20packet%20with%20the%20Model%20ID%20sent%20by%20the%20device%20and%20makes%20this%20Model%20ID%20available%20to%20cloud%20applications.%20Once%20the%20model%20is%20defined%2C%20the%20device%20developer%20just%20needs%20to%20add%20the%20Model%20ID%20announcement%20in%20the%20connection%20message%20and%20ensure%20the%20device%20implementation%20matches%20the%20model.%20With%20this%20Model%20ID%2C%20IoT%20Hub%20will%20be%20able%20to%20identify%20devices%20that%20support%20IoT%20Plug%20and%20Play%20and%20enable%20to%20seamlessly%20integrate%20them%20into%20IoT%20Plug%20and%20Play%20enabled%20solutions%20(see%20below).%3C%2FLI%3E%0A%3CLI%3EDevice%20developers%20can%20share%20their%20devices%E2%80%99%20models%20with%20solution%20developers%20directly%20or%20through%20a%20public%20or%20private%20repository%2C%20with%20the%20corresponding%20Model%20IDs.%3C%2FLI%3E%0A%3CLI%3EDevice%20builders%20can%20certify%20their%20devices%20for%20solution%20builders%20to%20get%20the%20guarantee%20that%20devices%20are%20indeed%20supporting%20Plug%20and%20Play%20and%20can%20seamlessly%20be%20integrated%20into%20next%20generation%20IoT%20solutions.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EFor%20the%20solution%20developer%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ESolution%20builders%20can%20retrieve%20devices%E2%80%99%20Model%20ID%20from%20IoT%20hub.%3C%2FLI%3E%0A%3CLI%3EWith%20the%20Model%20ID%2C%20they%20will%20acquire%20and%20parse%20the%20matching%20IoT%20Plug%20and%20Play%20model%20for%20the%20device%20from%20the%20model%20repository%20or%20other%20sharing%20mechanism%20agree%20upon%20with%20the%20device%20builder.%3C%2FLI%3E%0A%3CLI%3EWith%20the%20IoT%20Plug%20and%20Play%20model%2C%20solutions%20can%20dynamically%20adjust%20their%20user%20interface%20depending%20on%20the%20devices%20connecting.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EIoT%20Plug%20and%20Play%20Preview%20is%20currently%20available%20in%20%3CSTRONG%3EJapan%20East%3C%2FSTRONG%3E%2C%20%3CSTRONG%3ECentral%20US%3C%2FSTRONG%3E%2C%20and%20%3CSTRONG%3ENorth%20Europe%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--617264871%22%20id%3D%22toc-hId--617264871%22%20id%3D%22toc-hId--617152501%22%3EDevice%20SDKs%20are%20production%20ready%3C%2FH2%3E%0A%3CP%3EAs%20of%20today%2C%20all%20Azure%20IoT%20Hub%20device%20SDKs%20are%20already%20updated%2C%20and%20support%20IoT%20Plug%20and%20Play.%20Here%20are%20the%20steps%20required%20to%20enable%20IoT%20Plug%20and%20Play%20on%20any%20device%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreate%20the%20model%20describing%20the%20device%20interactions%3C%2FLI%3E%0A%3CLI%3EImplement%20the%20device%20model%20including%20sharing%20the%20Model%20ID%20during%20the%20connection%20and%20using%20the%20Azure%20IoT%20communication%20patterns%20(Device%20Twins%2C%20Direct%20Methods%2C%20Telemetry)%3C%2FLI%3E%0A%3CLI%3EValidate%20the%20device%E2%80%99s%20implementation%20of%20the%20model%20using%20a%20tool%20to%20interact%20with%20the%20device%20(-ERR%3AREF-NOT-FOUND-Azure%20IoT%20Explorer%2C%20-ERR%3AREF-NOT-FOUND-IoT%20Plug%20and%20Play%20CLI%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fiot-pnp%2Fhowto-use-iot-explorer%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EREST%20APIs%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fcli%2Fazure%2Fazure-cli-reference-for-IoT%3Fview%3Dazure-cli-latest%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EService%20SDKs%3C%2FA%3E)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EWe%E2%80%99ve%20got%20some%20good%20news%20for%20device%20developers%3A%20even%20though%20IoT%20Plug%20and%20Play%20is%20still%20in%20Preview%2C%20device%20builders%20can%20use%20these%20SDKs%20to%20build%20certification%20ready%20devices%20starting%20today.%20This%20means%20we%20won%E2%80%99t%20make%20any%20further%20breaking%20changes%20to%20the%20SDKs%20and%20all%20devices%20created%20today%20will%20work%20without%20any%20modification%20when%20IoT%20Plug%20and%20Play%20becomes%20generally%20available%20(GA).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1870247962%22%20id%3D%22toc-hId-1870247962%22%20id%3D%22toc-hId-1870360332%22%3ENew%20features%20for%20solution%20builders%3C%2FH2%3E%0A%3CP%3ETo%20fulfill%20the%20promise%20of%20the%20-ERR%3AREF-NOT-FOUND-Digital%20Twins%20vision%2C%20IoT%20Plug%20and%20Play%20offers%20APIs%20compatible%20with%20Azure%20Digital%20Twins%20(ADT)%2C%20allowing%20any%20IoT%20Plug%20and%20Play%20device%20to%20seamlessly%20integrate%20into%20Digital%20Twins%20applications.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20new%20preview%20REST%20API%20can%20be%20consumed%20by%20the%20Azure%20Digital%20Twins%20Service%20SDKs%2C%20available%20for%20-ERR%3AREF-NOT-FOUND-Node%20and%20-ERR%3AREF-NOT-FOUND-Python.%20Support%20for%20Java%20and%20.NET%20will%20be%20added%20soon.%20Furthermore%2C%20Azure%20IoT%20Hub%20can%20produce%20Digital%20Twins%20change%20notifications.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThese%20features%20enable%20the%20alignment%20of%20IoT%20Hub%20with%20ADT%20to%20accelerate%20the%20creation%20of%20modern%20smart%20environmental%20solutions.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-62793499%22%20id%3D%22toc-hId-62793499%22%20id%3D%22toc-hId-62905869%22%3EDeveloper%20Experience%3C%2FH2%3E%0A%3CP%3ETo%20create%20device%20models%2C%20developers%20can%20use%20the%20Visual%20Studio%20extensions%20for%20DTDL%2C%20available%20for%20-ERR%3AREF-NOT-FOUND-VSCode%20and%20-ERR%3AREF-NOT-FOUND-Visual%20Studio%202019%2C%20with%20all%20expected%20features%20such%20as%20Intellisense%20and%20automatic%20validation.%20Read%20more%20about%20this%20extension%20in%20this%20%3CA%20href%3D%22https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dvsciot-vscode.vscode-dtdl%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Eblog%20post%20announcement.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBecause%20IoT%20Plug%20and%20Play%20exposes%20REST%20APIs%2C%20you%20can%20easily%20extend%20your%20own%20tooling%2C%20scripts%2C%20and%20development%20environments.%20In%20fact%2C%20the%20Azure%20IoT%20Explorer%20tool%2C%20the%20Visual%20Studio%20and%20Code%20extensions%2C%20and%20the%20Azure%20CLI%20IoT%20extension%20are%20all%20taking%20full%20advantage%20of%20the%20IoT%20Plug%20and%20Play%20REST%20APIs.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20have%20samples%20and%20docs%20for%20all%20languages%20available%20in%20our%20new%20released%20documentation%20on%20-ERR%3AREF-NOT-FOUND-docs.microsoft.com%2Fazure%2Fiot-pnp%20to%20help%20you%20learn%20IoT%20Plug%20and%20Play%20concepts.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1744660964%22%20id%3D%22toc-hId--1744660964%22%20id%3D%22toc-hId--1744548594%22%3EHello%20IoT%20Plug%20and%20Play%20World%20!!%3C%2FH2%3E%0A%3CP%3EHow%20about%20we%20walk%20you%20through%20how%20this%20all%20looks%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%E2%80%99s%20create%20a%20simple%20device%20using%20the%20.NET%20SDK%2C%20(other%20languages%20are%20available%20in%20the%20-ERR%3AREF-NOT-FOUND-Quickstarts)%26nbsp%3Bthat%20reports%20the%20current%20memory%20available%20as%20a%20telemetry%20data%20point%2C%20the%20frequency%20of%20this%20signal%20will%20be%20configurable%20by%20a%20writable%20property%20that%20can%20be%20set%20from%20the%20solution%20side.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%2C%20we%20create%20the%20DTDL%20interface%2C%20applying%20a%20model-first%20approach%2C%20and%20then%20we%20implement%20a%20device%20in%20.NET%20that%20produces%20messages%20that%20are%20compatible%20with%20the%20-ERR%3AREF-NOT-FOUND-IoT%20Plug%20and%20Play%20convention.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%E2%80%99ll%20use%20the%20-ERR%3AREF-NOT-FOUND-DTDL%20VSCode%20extension%20to%20create%20the%20interface%20using%20the%20command%20palette%3A%20%3CSTRONG%3EDTDL%3A%20CreateInterface%2C%26nbsp%3B%3C%2FSTRONG%3Eand%20replace%20the%20default%20contents%20with%20the%20%3CEM%3Etelemetry%3C%2FEM%3E%20and%20%3CEM%3Eproperty%3C%2FEM%3E%20elements.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%0A%20%20%22%40context%22%3A%20%22dtmi%3Adtdl%3Acontext%3B2%22%2C%0A%20%20%22%40id%22%3A%20%22dtmi%3Acom%3Aexample%3Amydevice%3B1%22%2C%0A%20%20%22%40type%22%3A%20%22Interface%22%2C%0A%20%20%22displayName%22%3A%20%22mydevice%22%2C%0A%20%20%22contents%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22%40type%22%3A%20%22Telemetry%22%2C%0A%20%20%20%20%20%20%22name%22%3A%20%22workingSet%22%2C%0A%20%20%20%20%20%20%22schema%22%3A%20%22double%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22%40type%22%3A%20%22Property%22%2C%0A%20%20%20%20%20%20%22name%22%3A%20%22refreshInterval%22%2C%0A%20%20%20%20%20%20%22schema%22%3A%20%22integer%22%0A%20%20%20%20%20%20%22writable%22%20%3A%20true%0A%20%20%20%20%7D%0A%20%20%5D%0A%7D%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20create%20the%20device%20code%20we%20use%20.NET%20and%20the%20-ERR%3AREF-NOT-FOUND-Microsoft.Azure.Devices.Client%2F1.27.0%20NuGet%20package.%3C%2FP%3E%0A%3CP%3ETo%20initialize%20the%20DeviceClient%20we%20need%20the%20Device%20Connection%20String%20and%20the%20Model%20Id%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Estring%20modelId%20%3D%20%22dtmi%3Acom%3Aexample%3Amydevice%3B1%22%3B%0Astring%20connectionString%20%3D%20%22%3CDEVICECONNECTIONSTRING%3E%22%3B%0Aint%20%20%20%20refreshInterval%20%3D%205%3B%0Avar%20client%20%3D%20DeviceClient.CreateFromConnectionString(connectionString%2C%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20TransportType.Mqtt%2C%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20new%20ClientOptions()%20%7B%20ModelId%20%3D%20modelId%20%7D)%3B%0AConsole.WriteLine(%22client%20connected%22)%3B%0A%3C%2FDEVICECONNECTIONSTRING%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%E2%80%99s%20start%20by%20reading%20the%20%3CEM%3ErefreshInterval%3C%2FEM%3E%20from%20the%20desired%20properties%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Evar%20twin%20%3D%20await%20client.GetTwinAsync()%3B%0Aif%20(twin.Properties.Desired.Contains(nameof(refreshInterval)))%0A%7B%0A%20%20JValue%20refreshIntervalProperty%20%3D%20twin.Properties.Desired%5Bnameof(refreshInterval)%5D%3B%0A%20%20refreshInterval%20%3D%20refreshIntervalProperty.Value%3CINT%3E()%3B%0A%20%20Console.WriteLine(%22Found%20refreshInterval%3A%22%20%2B%20refreshInterval)%3B%0A%7D%0A%3C%2FINT%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20sending%20the%20telemetry%20in%20a%20loop.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Ewhile%20(true)%0A%7B%0A%20%20var%20serializedTelemetry%20%3D%20JsonConvert.SerializeObject(%0A%20%20%20%20new%20%7B%20workingSet%20%3D%20Environment.WorkingSet%20%7D%0A%20%20)%3B%0A%20%20var%20message%20%3D%20new%20Message(Encoding.UTF8.GetBytes(serializedTelemetry))%3B%0A%20%20message.ContentType%20%3D%20%22application%2Fjson%22%3B%0A%20%20message.ContentEncoding%20%3D%20%22utf-8%22%3B%0A%20%20await%20client.SendEventAsync(message)%3B%0A%20%20Console.WriteLine(serializedTelemetry)%3B%0A%20%20await%20Task.Delay(refreshInterval%20*%201000)%3B%0A%7D%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%2C%20we%20want%20to%20subscribe%20to%20any%20desired%20property%20update.%20Note%20that%20the%20device%20must%20report%20back%20if%20the%20desired%20property%20was%20applied.%20The%20extra%20properties%20are%20described%20in%20the%20-ERR%3AREF-NOT-FOUND-IoT%20Plug%20and%20Play%20Convention.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Eawait%20client.SetDesiredPropertyUpdateCallbackAsync(async%20(desired%2C%20ctx)%20%3D%26gt%3B%0A%7B%0A%20%20if%20(desired.Contains(nameof(refreshInterval)))%0A%20%20%7B%0A%20%20%20%20JValue%20refreshIntervalProp%20%3D%20desired%5Bnameof(refreshInterval)%5D%3B%0A%20%20%20%20refreshInterval%20%3D%20refreshIntervalProp.Value%3CINT%3E()%3B%0A%20%20%20%20Console.WriteLine(%22Received%20refreshInterval%3A%22%20%2B%20refreshInterval)%3B%0A%20%20%20%20TwinCollection%20reportedProperties%20%3D%20new%20TwinCollection()%3B%0A%20%20%20%20TwinCollection%20ackProps%20%3D%20new%20TwinCollection()%3B%0A%20%20%20%20ackProps%5B%22value%22%5D%20%3D%20refreshInterval%3B%0A%20%20%20%20ackProps%5B%22ac%22%5D%20%3D%20200%3B%0A%20%20%20%20ackProps%5B%22av%22%5D%20%3D%20desired.Version%3B%0A%20%20%20%20ackProps%5B%22ad%22%5D%20%3D%20%22desired%20property%20received%22%3B%0A%20%20%20%20reportedProperties%5Bnameof(refreshInterval)%5D%20%3D%20ackProps%3B%0A%0A%20%20%20%20await%20client.UpdateReportedPropertiesAsync(reportedProperties)%3B%0A%20%20%7D%0A%7D%2C%20null)%3B%0A%3C%2FINT%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-742851869%22%20id%3D%22toc-hId-742851869%22%20id%3D%22toc-hId-742964239%22%3EUse%20the%20service%20SDK%20to%20add%20IoT%20Plug%20and%20Play%20support%20in%20your%20solutions%3C%2FH2%3E%0A%3CP%3EOur%20service%20-ERR%3AREF-NOT-FOUND-SDKs%20allow%20you%20to%20easily%20take%20advantage%20of%20IoT%20Plug%20and%20Play%20in%20your%20IoT%20solutions.%20Let%20us%20show%20you%20how.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIoT%20Solutions%20use%20the%20Azure%20SDK%20to%20interact%20with%20the%20devices%20using%20IoT%20Hub%E2%80%99s%20patterns%20(Telemetry%2C%20Device%20Twins%20and%20Direct%20Methods).%20The%20new%20Azure%20IoT%20Hub%20Digital%20Twins%20service%20SDKs%20lets%20you%20retrieve%20the%20Model%20Id%20announced%20by%20the%20device.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EThis%20time%20we%20are%20going%20to%20use%20the%20Node.js%20service%20SDK%26nbsp%3B%20from%20-ERR%3AREF-NOT-FOUND-NPM.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3Econst%20dt%20%3D%20require('azure-iot-digitaltwins-service')%20%2F%2F%20preview%0Aconst%20cs%20%3D%20'%3CHUBCONNECTIONSTRING%3E'%0Aconst%20dtclient%20%3D%20new%20dt.DigitalTwinServiceClient(new%20dt.IoTHubTokenCredentials(cs))%0Adtclient.getDigitalTwin('mxchip1')%0A%20%20.then(dtresp%20%3D%26gt%3B%20%7B%0A%20%20%20%20if%20(dtresp)%20%7B%0A%20%20%20%20%20%20const%20twin%20%3D%20dtresp._response.parsedBody%20%0A%20%20%20%20%20%20const%20modelId%20%3D%20twin.%24metadata.%24model%0A%20%20%20%20%20%20console.log(modelId)%0A%20%20%20%20%7D%0A%20%20%7D)%0A%3C%2FHUBCONNECTIONSTRING%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20the%20Model%20Id%20available%2C%20your%20custom%20solution%20can%20make%20smart%20decisions%20about%20how%20to%20interact%20with%20the%20device.%20If%20the%20device%20implements%20the%20model%20Id%20we%20know%20of%2C%20we%20can%20safely%20update%20the%20%3CEM%3ErefreshInterval%3C%2FEM%3E%20property%20using%20the%20new%20Digital%20Twins%20patch%20api.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3Eif%20(modelId%20%3D%3D%3D%20'dtmi%3Acom%3Aexample%3Amydevice%3B1')%20%7B%0A%0A%20%20const%20patch%20%3D%20%5B%7B%0A%20%20%20%20%20%20op%3A%20'add'%2C%0A%20%20%20%20%20%20path%3A%20'%2FrefreshInterval'%2C%0A%20%20%20%20%20%20value%3A%203%0A%20%20%7D%5D%0A%0A%20%20dtclient.updateDigitalTwin(deviceId%2C%20patch%2C%20dtresp.eTag)%0A%20%20%20%20.then(patchResp%20%3D%26gt%3B%20%7B%0A%20%20%20%20%20%20console.log(patchResp)%0A%20%20%20%20%7D)%0A%7D%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20.NET%20device%20simulator%20is%20still%20running%20you%20should%20see%20how%20the%20device%20reacts.%3C%2FP%3E%0A%3CPRE%3EFull%20code%20and%20sample%20model%20available%20in%20this%20%3CA%20href%3D%22https%3A%2F%2Fgist.github.com%2Frido-min%2Ff39d4b0fcef33d7f1f28b8ae04000fce%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Egist%3C%2FA%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1064602594%22%20id%3D%22toc-hId--1064602594%22%20id%3D%22toc-hId--1064490224%22%3EUse%20Azure%20IoT%20Explorer%20to%20validate%20the%20device%20implementation%3C%2FH2%3E%0A%3CP%3EThe%20last%20step%20is%20to%20validate%20the%20device%20implementation%20against%20its%20Model.%20For%20this%2C%20we%20use%20-ERR%3AREF-NOT-FOUND-Azure%20IoT%20Explorer%20which%20has%20been%20updated%20to%20support%20IoT%20Plug%20and%20Play%20from%20version%200.11.1.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20connect%20the%20Azure%20IoT%20Explorer%20tool%20to%20IoT%20Hub%2C%20you%20need%20the%20admin%20IoT%20Hub%20connection%20string.%20When%20you%E2%80%99re%20connected%2C%20go%20to%20the%20devices%20section%20and%20add%20a%20new%20device.%20When%20you%20have%20the%20device%20id%20registered%2C%20you%20can%20grab%20the%20connection%20string%20and%20replace%20in%20the%20first%20code%20snippet%20we%20created%20before%20for%20the%20device.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%224.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208572i6F259E00EE3D071F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%224.png%22%20alt%3D%224.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20IoT%20Explorer%20can%20load%20your%20models%20from%20a%20local%20folder.%20In%20the%20main%20screen%20%E2%80%93%20Home%2C%20select%20IoT%20Plug%20and%20Play%20settings%20and%20set%20the%20source%20to%20a%20local%20folder%20where%20your%20DTDL%20model%20files%20are%20located.%3C%2FP%3E%0A%3CP%3ENow%2C%20when%20you%20run%20the%20device%20code%20(remember%20to%20update%20the%20connection%20string)%2C%20Azure%20IoT%20Explorer%20will%20populate%20the%20IoT%20Plug%20and%20Play%20view%20with%20a%20default%20UI%20built%20from%20the%20model.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESee%20what%20happened%20here%20in%20the%20Azure%20IoT%20Explorer%3F%20Its%20UI%20adapted%20to%20the%20device%20model%20without%20any%20need%20for%20code%20change%20or%20configuration.%20Isn%E2%80%99t%20that%20convenient%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%225.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208575i232A8FB3AF3263DE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%225.png%22%20alt%3D%225.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20now%20inspect%20telemetry%2C%20properties%20and%20interact%20with%20the%20device.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%E2%80%99s%20update%20the%20%3CEM%3ErefreshInterval%3C%2FEM%3E%20value%20from%20the%20Azure%20IoT%20Explorer%20UI%20and%20see%20the%20bi-directional%20communication%20with%20the%20device%20in%20action.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%226.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208576iB5357F5701008E30%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%226.png%22%20alt%3D%226.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1422910239%22%20id%3D%22toc-hId-1422910239%22%20id%3D%22toc-hId-1423022609%22%3EIoT%20Central%20will%20use%20IoT%20Plug%20and%20Play%3C%2FH2%3E%0A%3CP%3EIntegration%20with%20IoT%20Central%20is%20a%20key%20component%20of%20the%20IoT%20Plug%20and%20Play%20value%20proposition.%20By%20the%20time%20IoT%20Plug%20and%20Play%20becomes%20generally%20available%2C%20IoT%20Central%20will%20be%20updated%20to%20fully%20support%20the%20new%20capabilities%20and%20conventions%20in%20full%20alignment%20with%20DTDL%20v2%2C%20additionally%20all%20certified%20IoT%20Plug%20and%20Play%20devices%20will%20automatically%20work%20with%20Central.%20Stay%20tuned%20for%20more%20updates%20on%20this%20soon.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--384544224%22%20id%3D%22toc-hId--384544224%22%20id%3D%22toc-hId--384431854%22%3ENext%20Steps%3C%2FH2%3E%0A%3CP%3EDon't%20miss%20the%20latest%20IoT%20Show%20with%20more%20live%20demos%20connecting%20Things%20to%20Azure%20using%20IoT%20Plug%20and%20Play%2C%20check%20it%20out%20in%20-ERR%3AREF-NOT-FOUND-Channel9%20and%20-ERR%3AREF-NOT-FOUND-YouTube%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20align%3D%22center%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2FOOjXZrFidhw%22%20width%3D%22560%22%20height%3D%22315%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20allow%3D%22accelerometer%3B%20autoplay%3B%20encrypted-media%3B%20gyroscope%3B%20picture-in-picture%22%3E%3C%2FIFRAME%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOur%20team%20is%20eager%20to%20see%20how%20you%20will%20take%20advantage%20of%20IoT%20Plug%20and%20Play%20in%20your%20IoT%20devices%20and%20solutions.%20We%20are%20also%20looking%20forward%20to%20getting%20your%20feedback.%20You%20can%20find%20us%20in%20our%20open%20source%20GitHub%20Repos%20for%20the%20SDKs%2C%20or%20you%20can%20simply%20engage%20in%20a%20conversation%20right%20here%20in%20the%20IoT%20Tech%20Community%20commenting%20below.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1548531%22%20slang%3D%22en-US%22%3E%3CP%3EWe've%20refreshed%20the%20IoT%20Plug%20and%20Play%20Preview%20with%20new%20features%20and%20enhancements%20for%20device%20and%20solution%20builders.%20This%20technical%20blog%20post%20will%20show%20you%20how%20to%20get%20started%20today%20!!%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22iot-overview-index.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208669i50CE62E4D5E4550D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22iot-overview-index.jpg%22%20alt%3D%22iot-overview-index.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1548531%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Edigital%20twins%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIoT%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eiot%20plug%20and%20play%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1554271%22%20slang%3D%22en-US%22%3ERE%3A%20Add%20%22Plug%20and%20Play%22%20to%20your%20IoT%20Solutions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1554271%22%20slang%3D%22en-US%22%3EThis%20is%20great!%3C%2FLINGO-BODY%3E
Version history
Last update:
‎Jul 29 2020 10:51 AM
Updated by: