更新时间:2021-07-02 20:46:50
coverpage
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Getting Started with Android Things
Internet of Things overview
IoT components
Android Things overview
Things support library
Android Things board compatibility
How to install Android Things on Raspberry
How to install Android Things using Windows
How to install Android Things using OS X
Testing the installation
How to install Android Things on Intel Edison
Configuring the WiFi
Creating the first Android Things project
Cloning the template project
Create the project manually
Differences between Android and Android Things
Create your first Android Things app
Summary
Creating an Alarm System Using Android Things
Alarm system project description
PIR sensor
Project schematic
How to use GPIO pins
Reading from the GPIO pin
How to add a listener to GPIO
Declare the event to listen to
Implementing the callback class
How to close the connection with a GPIO pin
Handle different boards in Android Things
Android Things board pinout
How to identify the board
How to implement the notification system
Configuring firebase
Add the notification feature to the Android Things app
Android companion app
How to Make an Environmental Monitoring System
Environmental monitoring system project overview
Project components
How to read data from sensors
Handling sensors using the Android sensor framework
Implementing the sensor callback
How to handle dynamic sensors
Putting it all together - acquiring data
How to close the sensor connection
How to control GPIO pins
Initialize the GPIO pin
Diving into I2C protocol
I2C protocol overview
How to implement a custom sensor driver
Low-level sensor driver
Integrate Android Things with IoT Cloud Platforms
IoT cloud architecture
An IoT cloud platform overview
IoT cloud architecture overview
Streaming data to the IoT cloud platform
How to configure Artik Cloud
Artik client description
How to implement the Android Things Artik client
Implement a StringRequest with Volley
Implement a custom HTTP header
Send the data using a custom body request
Sending data from the Android Things app
Creating a dashboard
Data logging
Adding voice capabilities to Android Things
Configure Temboo choreo
Integrate Temboo in the Android Things app
Create a Smart System to Control Ambient Light
Ambient light control system description
Project architecture
Building the Arduino project
How Arduino exposes the services
Implementing the Android Things app
How to develop an Android Things app UI
Attaching the layout to the Activity