Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AWS IoT Events はステートマシンですから。/aws-iot-events-is-...
Search
Kohei "Max" MATSUSHITA
October 13, 2019
Technology
700
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AWS IoT Events はステートマシンですから。/aws-iot-events-is-statemachine-for-iot-devices
JAWS-UG広島14回目@酒まつり
Oct. 13, 2019 / 広島大学
Max@SORACOM
Kohei "Max" MATSUSHITA
October 13, 2019
More Decks by Kohei "Max" MATSUSHITA
See All by Kohei "Max" MATSUSHITA
AWS アーキテクチャ作図入門/aws-architecture-diagram-101
ma2shita
32
28k
JAWS FESTA 2024「バスロケ」GPS×サーバーレスの開発と運用の舞台裏/jawsfesta2024-bus-gps-serverless
ma2shita
3
1k
こんにちは!AWS re:Invent 2024 です!/JAWS-UG TOHOKU-hi-threre-aws-reinvent-2024-1
ma2shita
0
260
Not only Claude 3 and Amazon Forecast! Get the Future by Chronos of Amazon's Time series FM/get-the-future-by-chronos-of-amazons-time series-fm
ma2shita
0
230
さらなるアウトプットに、Let's ライトニングトーク! ― LTのやり方
ma2shita
2
2.1k
Starlinkと宇宙の話/what-is-starlink-and-the-universe
ma2shita
0
210
Build will change the World!!
ma2shita
0
240
もうサーバーは作らない!手間も費用もかからない「サーバーレス」の選び方と始め方のコツ/lets-serverless
ma2shita
0
210
IoTデバイスを安心して使う「技適」特例の概要から届出~廃止まで && Amazon Monitronのご紹介/telec-and-amazon-monitron
ma2shita
0
1.1k
Other Decks in Technology
See All in Technology
ハーレムエンジニアリング
kazuma777777
0
140
Webアクセシビリティ入門 2026
recruitengineers
PRO
3
560
モバイルアプリ開発概論2026
recruitengineers
PRO
5
580
2026-08-05 IBM Z開発最前線!IBM Bob Premium Package for Zって何がすごいの?
yutanonaka
0
110
私がブラウザを自作したくなった理由
supurazako
1
220
Invisible to AI? Making TYPO3 Sites Quotable by AI Search Systems
wolfgangwagner
0
200
会社紹介資料 / Sansan Company Profile
sansan33
PRO
23
430k
AIペネトレーションテスト・ セキュリティ検証「AgenticSec」紹介資料
laysakura
2
9k
猫付きpingコマンドを自作
uyuki234
0
230
え?フロントエンドエンジニアの ワイがインフラも!?
puku0x
1
550
カートの信頼性を担保するWireMockを使ったe2eテスト
ykagano
0
240
FDEの心得
noriakioji
4
5.1k
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
72
12k
How to Think Like a Performance Engineer
csswizardry
28
2.7k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
How STYLIGHT went responsive
nonsquared
100
6.2k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
350
Context Engineering - Making Every Token Count
addyosmani
9
1k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
540
Optimizing for Happiness
mojombo
378
71k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
200
GitHub's CSS Performance
jonrohan
1033
470k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
260
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
520
Transcript
AWS IoT Events は ステートマシンですから。 JAWS-UG広島14回目@酒まつり Oct. 13, 2019 /
広島大学 Max@SORACOM
株式会社ソラコム テクノロジー・エバンジェリスト 松下享平 (まつした こうへい) "Max" 講演回数 140超/年 保有スライド枚数 8000枚超
オーバーラン常習犯
Max の好きな AWS サービス AWS IoT Core
None
IoT やってる??
#あのボタン の会社
クラウド ネットワーク センサー/デバイス “モノ” 「IoT」とは? モノやコトをデジタル化
1 2 3 4 5 6 7 8 9
AWS IoT Core この辺で使う サービスの話。
Lambda アーキテクチャ コンテナ
時代はステートレス
ステートが必要になることも あるんです
Open Close ステート どこに保存しておこうか?
デバイスシャドウで「デジタルツイン」 Close
シャドウステータスの更新方法 クラウド上: •AWS IoT Core のルールエンジン •その先の AWS Lambda デバイス上:
•AWS IoT Greengrass (ってかLambda)
結局 AWS Lambda じゃねぇか!!
ステート実装の面倒な事 どんなステート があるの? どういう条件で ステート移行 するの?
AWS IoT Events
None
AWS IoT Events 「探知機モデル」編集画面 これは…ステートマシンの味だぜ!!!!
ステートマシンって? • いわゆる「状態遷移(図)」だよ。
変数 => [距離] [距離] 200 以上 [距離] 200 未満 AWS
IoT Events が • 最終的なステートを保存してくれる • 次回はそのステートからスタートしてくれる [距離] = 250 → ← [距離] = 100 ※ Close に移行 ← [距離] = 300 ※ Open のまま
変数 => [距離] [距離] 200 以上 [距離] 200 未満 •
OnEnter • OnInput • OnExit • OnEnter • OnInput • OnExit ステートに遷移した際の アクションを指定できる
結局 AWS Lambda じゃねぇか!! とはいえ、コード内には ステート移行条件の If 文とか 書く必要が無い。 「Lambda
が Lambda であるために」
AWS IoT Core からの Invoke 方法は?
None
AWS IoT Events は ステートマシーン ステートは AWS IoT Events に
任せよう
None
幸運の女神は前髪しかない いや、つるっぱげなので 準備して両手でキャッチしろ。
Max でした!