Skip to content

Commit

Permalink
value on object
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Dec 3, 2023
1 parent f35b5c4 commit eb32de1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions servicetests/tests/ShadowUpdate/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,12 @@ void changeShadowValue(Aws::Crt::String thingName, String property, String value
JsonObject desired;
JsonObject reported;
ShadowState state;
desired.WithObject(property, value);
reported.WithObject(property, value);

JsonObject val;
val.AsString(value);

desired.WithObject(property, val);
reported.WithObject(property, val);

state.Desired = desired;
state.Reported = reported;
Expand Down Expand Up @@ -294,8 +298,12 @@ void changeNamedShadowValue(String thingName, String property, String value, Str
JsonObject desired;
JsonObject reported;
ShadowState state;
desired.WithObject(property, value);
reported.WithObject(property, value);

JsonObject val;
val.AsString(value);

desired.WithObject(property, val);
reported.WithObject(property, val);

state.Desired = desired;
state.Reported = reported;
Expand Down

0 comments on commit eb32de1

Please sign in to comment.