PnpHelper Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. device. plugandplay. PnpHelper
- com.
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:
Returns: