This repository was archived by the owner on Nov 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
iot-hub/Samples/device/PnpDeviceSamples Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,10 @@ namespace Microsoft.Azure.Devices.Client.Samples
1515{
1616 public class Program
1717 {
18- // DTDL interface used: https://github.com/Azure/iot-plugandplay-models
19- // in v2 of TempController Model, we use 2 different model of Thermostat,
20- // in fact 2 different version of the same interface, to Allow IoT Central Handling correctly this model
18+ // DTDL interface used: https://github.com/Azure/iot-plugandplay-models/blob/main/dtmi/com/example/temperaturecontroller-2.json
19+ // The TemperatureController model contains 2 Thermostat components that implement different versions of Thermostat models.
20+ // Both Thermostat models are identical in definition but this is done to allow IoT Central to handle
21+ // TemperatureController model correctly.
2122 private const string ModelId = "dtmi:com:example:TemperatureController;2" ;
2223
2324 private static ILogger s_logger ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Devices.Client.Samples
1414{
1515 public class Program
1616 {
17- // DTDL interface used: https://github.com/Azure/iot-plugandplay-models/blob/main/dtmi/com/example/temperaturecontroller-2 .json
17+ // DTDL interface used: https://github.com/Azure/iot-plugandplay-models/blob/main/dtmi/com/example/thermostat-1 .json
1818 private const string ModelId = "dtmi:com:example:Thermostat;1" ;
1919
2020 private static ILogger s_logger ;
@@ -99,7 +99,7 @@ private static async Task<DeviceRegistrationResult> ProvisionDeviceAsync(Paramet
9999 {
100100 SecurityProvider symmetricKeyProvider = new SecurityProviderSymmetricKey ( parameters . DeviceId , parameters . DeviceSymmetricKey , null ) ;
101101 ProvisioningTransportHandler mqttTransportHandler = new ProvisioningTransportHandlerMqtt ( ) ;
102- ProvisioningDeviceClient pdc = ProvisioningDeviceClient . Create ( parameters . DpsEndpoint , parameters . DpsIdScope ,
102+ ProvisioningDeviceClient pdc = ProvisioningDeviceClient . Create ( parameters . DpsEndpoint , parameters . DpsIdScope ,
103103 symmetricKeyProvider , mqttTransportHandler ) ;
104104
105105 var pnpPayload = new ProvisioningRegistrationAdditionalData
You can’t perform that action at this time.
0 commit comments