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...