say hello to aws iot
TRANSCRIPT
![Page 1: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/1.jpg)
www.immobilienscout24.dewww.immobilienscout24.de
Say hello to AWS IoTBerlin | 15.03.2016 | Kay Lerch
![Page 2: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/2.jpg)
BasicsAWS IoT
Say hello to AWS IoT| Kay LerchSeite 2
![Page 3: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/3.jpg)
AWS IoT
Thing
Thing Shadow
Rule
Reports State Mirrors State in Shadow
Gets reported state or sets desired state
Propagates desired state
Receives desired state
Fulfi
lls
desir
ed st
ate
Subscribes to particular messages
AWS Services
Some AWS Resource
Routesmessage
TLS1.2
TLS 1.2 Policy
![Page 4: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/4.jpg)
AWS IoT
Thing Shadow
get
get/accepted
get/rejected
Request state
Get shadow state
Get error
update
update/accepted
update/rejected
update/delta
Update state
Confirmation
Get error
Changedstate
1
2
1
2
3
Thing topics name pattern: $aws/things/thing_name/...
![Page 5: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/5.jpg)
ExampleAWS IoT
Say hello to AWS IoT| Kay LerchSeite 5
![Page 6: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/6.jpg)
$aws/things/kayspi/shadow/update/delta
$aws/things/kayspi/shadow/update
AWS SNS
AWS IoT
Thing
Thing Shadow
Rule
Reports State Mirrors State in Shadow
Set desired state
Propagates desired state
Receives desired state
Switc
h on
/ off
the
bulb
Subscribes to light off state reports
SNS TopicRoutesmessage
TLS1.2
TLS 1.2 Policy
Out of SyncIn Sync
SELECT * FROM $aws/things/kayspi/shadow/update/accepted WHERE state.reported.light = ‘off’
![Page 7: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/7.jpg)
Set upI need some “thing”
Say hello to AWS IoT| Kay LerchSeite 7
![Page 8: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/8.jpg)
Raspberry Pi 2
J8-Header with General Purpose Input Output (GPIO) PinsI need some “thing” …
![Page 9: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/9.jpg)
Breadboard
I need some “thing” …
![Page 10: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/10.jpg)
T-Cobbler
I need some “thing” …
![Page 11: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/11.jpg)
Input & Output units on your breadboard
I need some “thing” …
![Page 12: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/12.jpg)
Control GPIO-Pins with sending or receiving electric impulses
Control an output Control an input
![Page 13: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/13.jpg)
Communicating with AWS IoT over MQTT topics
![Page 14: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/14.jpg)
Demo 1Photobooth
Say hello to AWS IoT| Kay LerchSeite 14
![Page 15: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/15.jpg)
2) Shoot a photo
View progress on breadboard
3) View on Slack
1) Press a button
![Page 16: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/16.jpg)
AWS Lambda
AWS SWF
LambdaTask
LambdaUpload to S3 & Start Workflow
LambdaUpdate Shadow
LambdaTask
LambdaGet S3 Photo
and Post Message to
Slack
LambdaTask
LambdaTask
LambdaTask
LambdaShorten Url with Bitly
LambdaUpdate Shadow
LambdaUpdate Shadow
AWS EC2WorkflowWorker
DeciderImpl
Rpi 2
AWS IoT
Thing Shadow
Python Script
GPIO
Rule
AWS S3Bucket
Put F
ile
Star
t WF
Invo
ke
MQTTPublish
MQTTReceive
Update Shadow
Poll Tasks
Shoot
Impulse
Impulse
![Page 17: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/17.jpg)
Demo 2Home, smart home …
Seite 17Say hello to AWS IoT| Kay Lerch
![Page 18: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/18.jpg)
Home, smart home …
Transmitter for your breadboard
![Page 19: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/19.jpg)
1) Write command on Slack
2b) Turn on and off music
2a) Switch on and offa light
2c) Control a kettle
3) Get notifiedon Slack
![Page 20: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/20.jpg)
AWS Lambda
AWS API Gateway
LambdaPost
Message to Slack
LambdaUpdate Shadow
Rpi 2
AWS IoT
Thing Shadow
Python ScriptGPIO
Rule
Invoke
MQTTPublish
MQTT Receive
Update Shadow on state change
Impulse Sequence
SVC
OutgoingWebhook
Post Message over Slack Web API
433 Mhz Signal
C++ D/AConverter
Post Message if no state changes
![Page 21: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/21.jpg)
Demo 3Infrastructure remote control
Seite 21Say hello to AWS IoT| Kay Lerch
![Page 22: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/22.jpg)
Controlling remote …
Receiver for your breadboard
![Page 23: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/23.jpg)
1) Press button on a remote
2) Start and stop EC2 instances
3) Get notifiedon Slack
4) View instance states on breadboard
![Page 24: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/24.jpg)
AWS Lambda
AWS EC2
LambdaStart / Stop
EC2-Instance
Rpi 2
AWS IoT
Thing Shadow
Python ScriptGPIO
Rule
Invoke
MQTTPublish
Impulse Sequence
Post Message over Slack Web API
433 Mhz Signal
C++ A/DConverter
Start / Stop over AWS SDK
AWS CW
LambdaReact on EC2 state change
Rule
Update Shadow
MQTT Receive
Impulse
On state change
![Page 25: Say hello to AWS IoT](https://reader035.vdocument.in/reader035/viewer/2022062306/587404861a28ab6f1d8b5d3d/html5/thumbnails/25.jpg)
www.immobilienscout24.de
Thank you for your attention. Any questions?Kontakt:Immobilien Scout GmbHAndreasstraße 1010243 Berlin
Kay LerchFon +49 30 24 301-1149Fax +49 30 24 [email protected]