====== IoT ======
===== IoT Device Catalogue =====
Device catalogue with IoT conformant devices.
https://devices.amazonaws.com/search?page=1
===== IoT Core =====
=== Thing ===
Subscribing to topic
{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/2021-09-25_23-31-05.png}}
==== Example ====
https://iot4beginners.com/tutorial-on-aws-iot-core-with-raspberry-pi-to-visualize-sensor-data/
==== Rules ====
=== Redirect to SiteWise ===
{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/2021-10-09_15-20-02.png}}
In order not to define a rule for each single Thing - use wildcards.
* Example setup https://docs.aws.amazon.com/iot-sitewise/latest/userguide/ingest-data-from-iot-things.html
* Topic wildCards https://docs.aws.amazon.com/iot/latest/developerguide/topics.html#topicfilters
* Functions https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html
== Have multiple things ==
The MQTT **topics** for things in Iot Core
are as structured as following:
$aws/things/alf-dev-con1-pi0-simulated/shadow/update/accepted
$aws/things/alf-dev-con1-pi1/shadow/update/accepted
== Define a rule selection==
Which match all things,
independent of thing-name
SELECT * FROM '$aws/things/+/shadow/update/accepted'
{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/2021-10-09_15-45-12.png}}
== Configure the SiteWise Assets ==
Add the name of the topic - to the property "aliases" .
So that you can use the topics - in the asset aliases.
{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/2021-10-09_15-40-43.png}}
== Define a rule action ==
Using **${topic(3)}** which match the topic of the thing.
The rules would redirect data to assets - depending on topic.
{{https://docs.aws.amazon.com/iot-sitewise/latest/userguide/images/rule-ingestion/rule-configure-sitewise-action-console.png}}