Not able to use IOT Rule to publish message to IOT Events thru MQTT Client

0

Not able to use IOT Rule to publish message to IOT Events given in example template : A

AWS_IoTEvents_HelloWorld_VoltageInput

how to define an IoT Events action in an AWS IoT rule using IOTCORE Console

Would message payload in MQTT Client would be like this: {"powerwallId": "100009", "voltage": 30}

  • Try subscribe to topic '#' which means able to subscribe all topic. You have to subscribe first in order to listen, then you can pass any json content.

質問済み 1年前259ビュー
1回答
0

Hi, you can use IoT Events as a destination for your rule action. You have to create an IoT Events Input (if not done) and an IAM Role that will allow you to send those events. The policy whould be something in the lines of this: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "iotevents:BatchPutMessage", "Resource": [ "arn:aws:iotevents:{region}:{account}:input/{input_name}" ] } ] }

Hope this helps!

profile pictureAWS
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ