Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions samples/Shadow/src/main/java/shadow/ShadowSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ static void onShadowDeltaUpdated(ShadowDeltaUpdatedEvent response) {
if (response.state != null && response.state.containsKey(SHADOW_PROPERTY)) {
String value = response.state.get(SHADOW_PROPERTY).toString();
System.out.println(" Delta wants to change value to '" + value + "'. Changing local value...");
if (!response.clientToken.isEmpty()) {
System.out.print(" ClientToken: " + response.clientToken + "\n");
}
changeShadowValue(value);
} else {
System.out.println(" Delta did not report a change in " + SHADOW_PROPERTY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
*/
public class ShadowDeltaUpdatedEvent {

/**
* An opaque token used to correlate requests and responses. Present only if a client token was used in the request.
*
*/
public String clientToken;


/**
* The current version of the document for the device's shadow.
*
Expand Down