PnpHelper Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.provisioning.device.plugandplay.PnpHelper

public class PnpHelper

Method Summary

Modifier and Type Method and Description
String createDpsPayload(@NonNull String modelId)

Create the DPS payload to provision a device as plug and play. For more information on device provisioning service and plug and play compatibility, and PnP device certification, see https://docs.microsoft.com/en-us/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

Method Details

createDpsPayload

public static String createDpsPayload(@NonNull String modelId)

Create the DPS payload to provision a device as plug and play. For more information on device provisioning service and plug and play compatibility, and PnP device certification, see https://docs.microsoft.com/en-us/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

Parameters:

modelId - 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.

Applies to