Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Dec 3, 2023
1 parent 1fcc59f commit 65f58fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions servicetests/tests/ShadowUpdate/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ void changeShadowValue(Aws::Crt::String thingName, String property, String value
UpdateShadowRequest request;
request.ThingName = thingName;
request.State = state;
Aws::Crt::UUID uuid;
request.ClientToken = uuid.ToString();

std::promise<void> shadowCompletedPromise;
auto publishCompleted = [thingName, value, &shadowCompletedPromise](int ioErr) {
Expand Down Expand Up @@ -288,6 +290,8 @@ void changeNamedShadowValue(String thingName, String property, String value, Str
request.ThingName = thingName;
request.State = state;
request.ShadowName = shadowName;
Aws::Crt::UUID uuid;
request.ClientToken = uuid.ToString();

std::promise<void> shadowCompletedPromise;
auto publishCompleted = [thingName, value, &shadowCompletedPromise](int ioErr) {
Expand Down

0 comments on commit 65f58fc

Please sign in to comment.