www.immobilienscout24.dewww.immobilienscout24.de
Say hello to AWS IoTBerlin | 15.03.2016 | Kay Lerch
BasicsAWS IoT
Say hello to AWS IoT| Kay LerchSeite 2
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
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/...
ExampleAWS IoT
Say hello to AWS IoT| Kay LerchSeite 5
$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’
Set upI need some “thing”
Say hello to AWS IoT| Kay LerchSeite 7
Raspberry Pi 2
J8-Header with General Purpose Input Output (GPIO) PinsI need some “thing” …
Breadboard
I need some “thing” …
T-Cobbler
I need some “thing” …
Input & Output units on your breadboard
I need some “thing” …
Control GPIO-Pins with sending or receiving electric impulses
Control an output Control an input
Communicating with AWS IoT over MQTT topics
Demo 1Photobooth
Say hello to AWS IoT| Kay LerchSeite 14
2) Shoot a photo
View progress on breadboard
3) View on Slack
1) Press a button
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
Demo 2Home, smart home …
Seite 17Say hello to AWS IoT| Kay Lerch
Home, smart home …
Transmitter for your breadboard
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
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
Demo 3Infrastructure remote control
Seite 21Say hello to AWS IoT| Kay Lerch
Controlling remote …
Receiver for your breadboard
1) Press button on a remote
2) Start and stop EC2 instances
3) Get notifiedon Slack
4) View instance states on breadboard
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
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]
Top Related