Dela via


PnpConvention.CreateDpsPayload(String) Method

Definition

Create the DPS payload to provision a device as plug and play.

public static string CreateDpsPayload (string modelId);
static member CreateDpsPayload : string -> string
Public Shared Function CreateDpsPayload (modelId As String) As String

Parameters

modelId
String

The Id of the model the device adheres to for properties, telemetry, and commands.

Returns

The DPS payload to provision a device as plug and play.

Remarks

For more information on device provisioning service and plug and play compatibility, and PnP device certification, see https://docs.microsoft.com/azure/iot-pnp/howto-certify-device. The DPS payload should be in the format:

{
  "modelId": "dtmi:com:example:modelName;1"
}

For information on DTDL, see https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/dtdlv2.md

Applies to