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.

asked a year ago250 views
1 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions