How do i write a AWS IoT Core rule for subscribing & unsubscribing to a topic.

0

I want to invoke a lambda when a user subscribes & unsubscribes to one of my topic's on IoT. Could someone tell me how to do this?

If this isn't possible yet it should really be added to the IoT service.

已提问 2 年前292 查看次数
1 回答
1
已接受的回答

You can have the rule get triggered based on the relevant reserved topic. For example:

SELECT * FROM '$aws/events/subscriptions/subscribed/+'
AWS
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则