Book Image

Android Things Projects

By : Francesco Azzola
Book Image

Android Things Projects

By: Francesco Azzola

Overview of this book

Android Things makes developing connected embedded devices easy by providing the same Android development tools, best-in-class Android framework, and Google APIs that make developers successful on mobile. With this book, you will be able to take advantage of the new Android framework APIs to securely build projects using low-level components such as sensors, resistors, capacitors, and display controllers. This book will teach you all you need to know about working with Android Things through practical projects based on home automation, robotics, IoT, and so on. We’ll teach you to make the most of the Android Things and build enticing projects such as a smart greenhouse that controls the climate and environment automatically. You’ll also create an alarm system, integrate Android Things with IoT cloud platforms, and more. By the end of this book, you will know everything about Android Things, and you’ll have built some very cool projects using the latest technology that is driving the adoption of IoT. You will also have primed your mindset so that you can use your knowledge for profitable, practical projects.
Table of Contents (15 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Chapter 6. Remote Weather Station

This chapter explores how to build a Remote Weather station that acquires weather information using several sensors. This IoT project uses an Android Things-compatible board and several IoT boards that connect to Android Things using the MQTT protocol. Through this project, we will cover how to exchange data between different devices. This aspect is known as machine to machine communication. This is an important topic in the IoT ecosystem. As we will see during this chapter, Machine to Machine (M2M) includes all the technologies that enable devices to talk to each other. In this chapter, we will focus on the MQTT protocol, describing how it is used in real-life IoT projects.

In more detail, this chapter focuses on:

  • The M2M architecture and MQTT protocol
  • How to use the MQTT protocol with Android Things
  • How to acquire and stream real-time data

Before starting, it is useful to have an overview of the Weather remote IoT project so that we can better understand the...