Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 88485f2

Browse files
author
Basel Rustum
authored
Update Comment (#161)
1 parent 72e4327 commit 88485f2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

iot-hub/Samples/device/PnpDeviceSamples/TemperatureController/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

iot-hub/Samples/device/PnpDeviceSamples/Thermostat/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)