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
アルコールモニタリングIoT / Alcohol monitoring IoT
Search
shanonim
February 28, 2019
Technology
0
550
アルコールモニタリングIoT / Alcohol monitoring IoT
2019.02.28
enebular developer Meetup Vol.8
https://enebular.connpass.com/event/117432/
shanonim
February 28, 2019
Tweet
Share
More Decks by shanonim
See All by shanonim
実践 Glass EE2 向けアプリ開発 / Practical Glass EE2 app development
shanonim
0
240
What's "Material You"
shanonim
0
300
新規事業のIoTプロダクトをプロトタイピングする技術 / IoT product prototyping in cookpad mart
shanonim
0
200
IoTで美味しい漬け物を作りたい v2 / make good pickles with IoT v2
shanonim
1
380
Play with Android Things
shanonim
1
6.1k
Android Things Now
shanonim
1
590
Kotlin初心者向けハンズオン #3 / Kotlin Hands-on for Beginners
shanonim
2
310
UI模写のすゝめ / Encouragement of UI drawing
shanonim
3
2.2k
食卓を支える技術 ~Oisixのアプリ開発~ / App Development in Oisix
shanonim
0
1.3k
Other Decks in Technology
See All in Technology
GitHub Universe: Evaluating RAG apps in GitHub Actions
pamelafox
0
170
生成AIの強みと弱みを理解して、生成AIがもたらすパワーをプロダクトの価値へ繋げるために実践したこと / advance-ai-generating
cyberagentdevelopers
PRO
1
180
IaC運用を楽にするためにCDK Pipelinesを導入したけど、思い通りにいかなかった話
smt7174
1
110
Shift-from-React-to-Vue
calm1205
3
1.3k
【若手エンジニア応援LT会】AWS Security Hubの活用に苦労した話
kazushi_ohata
0
170
Automated Promptingを目指すその前に / Before we can aim for Automated Prompting
rkaga
0
110
使えそうで使われないCloudHSM
maikamibayashi
0
170
【技術書典17】OpenFOAM(自宅で極める流体解析)2次元円柱まわりの流れ
kamakiri1225
0
210
AWS re:Inventを徹底的に楽しむためのTips / Tips for thoroughly enjoying AWS re:Invent
yuj1osm
1
570
Commitment vs Harrisonism - Keynote for Scrum Niseko 2024
miholovesq
6
1.1k
Java x Spring Boot Warm up
kazu_kichi_67
2
490
Figma Dev Modeで進化するデザインとエンジニアリングの協働 / figma-with-engineering
cyberagentdevelopers
PRO
1
430
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
For a Future-Friendly Web
brad_frost
175
9.4k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Designing Experiences People Love
moore
138
23k
A Philosophy of Restraint
colly
203
16k
Thoughts on Productivity
jonyablonski
67
4.3k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
Done Done
chrislema
181
16k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Teambox: Starting and Learning
jrom
132
8.7k
A designer walks into a library…
pauljervisheath
202
24k
Transcript
ΞϧίʔϧϞχλϦϯά*P5 FOFCVMBSEFWFMPQFS.FFUVQ7PM !TIBOPOJN
ΫοΫύουגࣜձࣾങࣄۀ෦ ࣰݪ߂ޫ !TIBOPOJN "OESPJEJ04*P51SPUPUZQJOH
None
ϚΠίϯ .4UBDL Ͱ*P5ϓϩτλΠϐϯάΛͨ͠Γ͍ͯ͠·͢
None
w FOFCVMBSʢΤωϒϥʔʣɺ*P5ɾαʔϏεͮ͘ΓΛแׅతʹࢧԉ͢Δɺ։ൃɾӡ༻αʔϏ εͰ͢ɻΤοδͱΫϥυʹ·͕ͨΔ*P5ΞϓϦέʔγϣϯΛ։ൃ͠ɺ༷ʑͳσόΠεਝʹ σϓϩΠɺେͳྔͷσʔλΛՄࢹԽ"*ʹΑΓར׆༻͢Δ͜ͱͰɺ*P5ΞϓϦέʔγϣϯͷ࠷ దͳӡ༻Λࢧԉ͠·͢ɻ ެࣜαΠτΑΓ w IUUQTXXXFOFCVMBSDPNKBBCPVU FOFCVMBS
None
w 8JP-5& "MDPIPM4FOTPSͰΞϧίʔϧϞχλϦϯά*P5 w ਲ͍ΛՄࢹԽ͢Δ w దͳਲ͍Ͱɺ݈߁ͳ৯ੜ׆ΛखʹೖΕΑ͏ ࠓճͷςʔϚ
8JP-5&XJUI403"$0. (SPWF"MDPIPM4FOTPS BOBMPHWBMVF IUUQ1045 'JSFCBTF %BUB4PVSDF qPX JOGPNPUJPO
None
#include <stdio.h> #include <WioLTEforArduino.h> #include <limits.h> #define INTERVAL (5000) #define
SENSOR_PIN (WIOLTE_A6) #define URL “https://<YOUR-DOMAIN>.herokuapp.com/upload" WioLTE Wio; int alcohol = 0; void setup() { // Connect LTE delay(200); SerialUSB.println("--- START ---------------------------------------------------"); SerialUSB.println("### I/O Initialize."); Wio.Init(); SerialUSB.println("### Power supply ON."); Wio.PowerSupplyLTE(true); delay(500); SerialUSB.println("### Turn on or reset."); if (!Wio.TurnOnOrReset()) { SerialUSB.println("### ERROR! ###"); return; } delay(3000); SerialUSB.println("### Setup completed."); }
void loop() { char data[100]; int status; alcohol = analogRead(SENSOR_PIN);
SerialUSB.print("sensor test value = "); SerialUSB.println(alcohol); delay(1000); sprintf(data, "{\"alcohol\": %d}", alcohol); if (!Wio.HttpPost(URL, data, &status)) { SerialUSB.println("### ERROR! ###"); goto err; } err: delay(3000); }
None
None
None
ύʔιφϧՃ࣪ˍۭؾਗ਼ড়ػʮΤΞΫϦʔϯωοΫόϯυʯ IUUQTXXXUIBOLPKQTIPQEFUBJM ͜͜ʹ͚͍ͨ JOQSPHSFTT
Ϣʔεέʔε w टݩͰৗʹΞϧίʔϧݕ w JGҿΈ͗ͯͨ͢Β w ৼಈ w ిؾ w
DVSSFOUTUBUVTΛπΠʔτ w ೋਲ͍͕ະવʹ͛ΔͷͰϋοϐʔ
ࡶײ w ʮఆظతʹσʔλऔಘͯ͠ՄࢹԽ͍ͨ͠ʯཁ݅Λγϡοͱ࡞Εͯ࠷ߴʂʂʂ̍ w 'JSFCBTFʹஷΊͯΔσʔλΛผ్׆༻͢Εͬͱ͍Ζ͍ΖͰ͖ͦ͏ w ΞϓϦ࡞ͬͨΓɺCPUͱ࿈ܞͨ͠Γ w /PEF3&%εΩϧ্͍͛ͨ w
JOGPUZQF+4ͳͷͰɺ࣮࣭δϟόεΫϦϓτ*P5ͳͷͰʁʂʁʂ