Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Conectando Android Things com Mqtt
Search
Wesley Lima
September 30, 2017
Technology
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Conectando Android Things com Mqtt
Wesley Lima
September 30, 2017
More Decks by Wesley Lima
See All by Wesley Lima
First step with Android Things
fioalpha
0
38
Other Decks in Technology
See All in Technology
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
390
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
230
サブエージェントと Claude Mods で作る独自 Advisor ツールの話
kenichiodo
2
160
パッチ更新でterraform initが落ちた日
grimoh
1
140
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
340
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
280
Running Kotlin + Quarkus with Lambda
nealle
1
3.8k
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
160
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
440
AI × アーキテクト 第1・2章|生成AIの課題とアーキテクトの素養
daidaidai
0
170
Refining Active Record
shugo
0
160
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
5k
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
55
13k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
ラッコキーワード サービス紹介資料
rakko
1
5.4M
How to train your dragon (web standard)
notwaldorf
96
6.9k
Thoughts on Productivity
jonyablonski
76
5.4k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
How GitHub (no longer) Works
holman
316
150k
Un-Boring Meetings
codingconduct
0
460
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Writing Fast Ruby
sferik
630
63k
Transcript
Conectando Android Thing no MQTT Wesley Lima da Silva Accera
Sensor Processador Atuador
Sensor - Transdutor • Sensor Recebe algum tipo se estimo
físico • Transdutor Transforma um tipo de energia para outra
Processador • Traduz os sinais do sensores em dados binários
None
Android Things Framework
Removido • Display Optional • Status bar e Navigation Button
— Removido • Permissões • Notificações
• CalendarContract • ContactsContract • DocumentContract • DownloadManager • MediaStore
• Settings • Telephony • UserDictionary • VoicemailContract Removido
• Awareness • Cast • Google Analytics Firebase • FCM
• Firebase Crash Reporting • Firebase Realtime Database • Firebase Remote Config • Firebase Storage • Fit • Instance ID • Location • Maps • Nearby • Places • Mobile Vision Google Service Com suporte
• AdMod • Android Play • Drive • Firebase App
Indexing • Firebase Authentication • Firebase Dynamic Link • Firebase Invites • Firebase Notification • Play Games • Sign-in Google Service Sem suporte
Comunicação com mundo externo • GPIO — I/O de propósito
geral • PWM — Modulação por largura de pulso • Comunicação serial • I2C • SPI • UART
GPIO • +5V/3.3V • Botão • LED
PWM • +5V/3.3V • Motor • Intensidade
I2C • Sensores • Display • 3 fios apenas •
Half duplex • Sincrona
SPI • Sensores • Display • 4 fios e mais
• Full duplex • Sincrona • Velocidade
UART • Sensores • Display • GPS • 3 fios
• Full duplex • Asincrona Things TX RX GND Periférico TX RX GND
Comparação Protocolo Tipo de transferência Fios Periférico Velocidade transferência I2C
Síncrona 3 Acima de 127 Baixa SPI Síncrona 4 Sem limite Alta UART Assíncrona 2/4 1 Media
User-space Drivers
None
• Executar alguma ação Atuador
• Protocolo mensagem levíssimo • Mesmo nível protocolo TCP/IP •
Usando padrão publish-subscribe • Limitação de banda de internet • SSL/TLS • Usuario/Senha MQTT
Publish 1 Publish 2 Publish 3 Broker Subscriber 1 Subscriber
2 MQTT
• setor/code_sensor/tipo_sensor/valor • setor/code_sensor/+/valor • setor/code_sensor/# MQTT
QoS - Qualidade do Serviço • QoS 0 - Máximo
uma vez • QoS 1 - o mínimo uma vez • QoS 2 - exatamente uma vez MQTT
Demo! Wear Android Things MQTT - Broker Luminaria