-
Hi all, This is the example of the documentation to the command. const command = new UpdateThingCommand({
thingName: "test",
attributePayload: "{\"attributes\":{\"string1\":\"string2\"}}"
});
const response = await iotClient.send(command); after sending the command, no attributes are shown at my thing. Best regards, Gregor |
Beta Was this translation helpful? Give feedback.
Answered by
ThisIsKex
Mar 8, 2023
Replies: 2 comments
-
Found a solution. Do not stringify attributes const attributes = {"string1": "string2"}
const command = new UpdateThingCommand({
thingName,
attributePayload: {
attributes
}
});
const response = await iotClient.send(command); Somehow the documentation was missleading. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ThisIsKex
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found a solution. Do not stringify attributes
Somehow the documentation was missleading.