Skip to content

How to find shadow name from delta event? #525

Answered by bretambrose
JayAtlis asked this question in Q&A
Discussion options

You must be logged in to vote

When you do a named shadow delta update subscribe, you pass in both the thing name and the shadow name as part of the request. The easiest way to get the shadow name on deltas is to capture it in a lambda that you use for the callback, which you pass in at the same time.

If you want to have a single, central callback that takes the shadow name as well as the delta, use little lambdas that capture and pass the shadow name to your central callback.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@JayAtlis
Comment options

@bretambrose
Comment options

Answer selected by JayAtlis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants