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 年前檢視次數 293 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南