O'Reilly logo

Android Things Projects by Francesco Azzola

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the MQTT subscriber using Android Things

Now it is time to implement the MQTT subscriber using Android Things. As we stated before, an MQTT subscriber is a component that registers itself to a topic and receives messages every time a publisher publishes data on that topic. In other words, we use the Android Things app to receive data coming from external remote sensor units. To this purpose, we can use one of the several available libraries that handle the MQTT protocol. Even if there are several Java libraries that could be reused in Android with some adjustments, we prefer to choose one that already supports Android. For these reasons, this IoT project uses Eclipse Paho (https://eclipse.org/paho/). This is an open source project ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required