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
310
新規事業のIoTプロダクトをプロトタイピングする技術 / IoT product prototyping in cookpad mart
shanonim
0
200
IoTで美味しい漬け物を作りたい v2 / make good pickles with IoT v2
shanonim
1
390
Play with Android Things
shanonim
1
6.2k
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
dev 補講: プロダクトセキュリティ / Product security overview
wa6sn
1
2.3k
社内で最大の技術的負債のリファクタリングに取り組んだお話し
kidooonn
1
550
iOSチームとAndroidチームでブランチ運用が違ったので整理してます
sansantech
PRO
0
130
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
100
開発生産性を上げながらビジネスも30倍成長させてきたチームの姿
kamina_zzz
2
1.7k
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
170
B2B SaaSから見た最近のC#/.NETの進化
sansantech
PRO
0
740
信頼性に挑む中で拡張できる・得られる1人のスキルセットとは?
ken5scal
2
530
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
Lambdaと地方とコミュニティ
miu_crescent
2
370
New Relicを活用したSREの最初のステップ / NRUG OKINAWA VOL.3
isaoshimizu
2
590
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
95
5.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Writing Fast Ruby
sferik
627
61k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
BBQ
matthewcrist
85
9.3k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
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ͳͷͰʁʂʁʂ