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

Commit 5bc0047

Browse files
author
David R. Williamson
authored
Merge pull request #147 from Azure-Samples/drwill/pnpSample
Send the device memory regularly, not just once
2 parents 779301c + 1654e3f commit 5bc0047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public async Task PerformOperationsAsync(CancellationToken cancellationToken)
8383
_desiredPropertyUpdateCallbacks.Add(Thermostat2, TargetTemperatureUpdateCallbackAsync);
8484

8585
await UpdateDeviceInformationAsync(cancellationToken);
86-
await SendDeviceMemoryAsync(cancellationToken);
8786
await SendDeviceSerialNumberAsync(cancellationToken);
8887

8988
bool temperatureReset = true;
@@ -101,6 +100,7 @@ public async Task PerformOperationsAsync(CancellationToken cancellationToken)
101100

102101
await SendTemperatureAsync(Thermostat1, cancellationToken);
103102
await SendTemperatureAsync(Thermostat2, cancellationToken);
103+
await SendDeviceMemoryAsync(cancellationToken);
104104

105105
temperatureReset = _temperature[Thermostat1] == 0 && _temperature[Thermostat2] == 0;
106106
await Task.Delay(5 * 1000);

0 commit comments

Comments
 (0)