Creating an IoT Rule

To get started, head over to AWS IoT and to the region where we have registered our Thing:

  1. From the menu on the left-hand side, click on Act and then click the Create a rule option. On the Create rule screen, we will fill in the details as shown in the following table:

Field

Value

Name

ES_Indexer

Description

Index AWS IoT topic data to Elasticsearch service

SQL version

2016-03-23

Attribute

cast(state.desired.temp as decimal) as temp, cast(state.desired.humd as decimal) as humd, timestamp() as timestamp

Topic filter

$aws/things/Pi3-DHT11-Node/shadow/update

Condition

  1. Once we fill the form in with the information mentioned in the previous table, we should see the rule query ...

Get Enterprise Internet of Things Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.