Is there any way I can get topic name in SQS queue when messages were redirected from AWS IoT?
You can use the sql function topic() in the SELECT statement of the IOT rule.
Something like
SELECT * as data, topic() as topic FROM 'your topic'
IOT sql function reference http://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html#iot-function-topic
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With