This documentation offers a comprehensive guide to integrating our CrystalMQ broker or any MQTT broker of your choice with a mobile application on Android. It covers fundamental tasks such as establishing connections, subscribing to topics, unsubscribing, and exchanging messages. By following these steps, you can seamlessly implement MQTT communication within your mobile applications.
Before proceeding, ensure you have :
First, download and install the IoT MQTT Panel app from the Play Store.
Step 1 : Open the IoT MQTT Panel App
Once installed, open the IoT MQTT Panel app on your android device.
Step 2: Add a New Broker
Step 3 : Add Dashboard
There should be atleast one dashboard to setup the connection.
Step 4: Configure Additional Settings (Optional)
Tap on Additional options to configure additional settings:
Step 4: Save and Connect
Once you have entered all the necessary details, tap the Create button to save your connection.
Tap on the broker entry you just created to initiate the connection.
Step 5: Add a Panel to Subscribe to Topics
1 .After connecting to the broker, you can add panels to subscribe to topics and view messages.
2 .Tap the + icon and choose the type of panel you want to add (e.g., Text Panel, Switch Panel).
3 .Configure the panel:
Tap Save to add the panel.
Step 6: Publish Messages
You have now successfully connected the IoT MQTT Panel app on your Android device to an MQTT broker. You can start subscribing to topics to receive messages and publish messages to communicate with other devices or services in your IoT network.