Introduction
Developers can integrate MQTT into Android projects using libraries like
Eclipse Paho Android Service.
However, for quick testing and practical use, you don’t always need to build an app from scratch.
Instead, you can use IoT MQTT Panel, a free Android app available on the Play Store, to connect,
subscribe, publish, and monitor
MQTT topics. This guide walks you through using the app to work
with an
MQTT broker.
Pre-requisites
Before you begin, make sure you have:
MQTT Connect
Make sure you have the broker details
(hostname, port, username/password, CA certificate) handy.
- Open IoT MQTT Panel.
- Tap “+” to add a new connection.
- Fill in the following fields:
- Connection Name: Any friendly name (e.g., Test1).
- Client ID: A unique identifier (e.g., Testclient-104).
- Broker Address: (e.g., crystalmq.bevywise.com)
- Port: 1883 (default for non-TLS).
- Network Protocol: Usually TCP.
- Additional Options: Enter Username & Password if required.
- Tap Create to save the connection.
- Select the connection and tap Connect Status will change to Connected if successful.
- Create a Dashboard for this device.
MQTT Disconnect
Clean disconnection ensures the broker releases resources tied to the session and avoids lingering socket connections.
- From the main connection list, tap your broker connection.
- Select Disconnect (Cloud Icon).
- The app will stop publishing/subscribing until reconnected.