I subscribe Aws Iot topic;
12345678/state
I try to write a rule to get this topic's payload at
12345678/shadow/update
I have written my rule by following these steps;
- My query string is
SELECT * FROM '+/state'
- My action is republishing everything without changing to other topic like this below
$$aws/things/${topic(1)}/shadow/update
When i write some static data instead of topic(1) function like "test", it works. However, i couldn't get topic name dynamically. There is no suitable document explaining how can achieve getting this topic name.
What is the right way to get topic name which is in my case "12345678"?
${topic(1)}
means? I'm trying to send an SNS every time a thing is updated. I've got it working, but the SNS payload doesn't specify which thing was updated. – falsePockets