Skip to content

4. Classic Monitor MQTT Subscriber app for Android

Graham Ross edited this page Jul 23, 2020 · 24 revisions

A pre-release version of the Classic Monitor Android app can be setup to subscribe to MQTT messages published by this ClassicMQTT publisher. If you use a cloud based broker like dioty then your classic data can be accessed from anywhere on the internet using the App. Once you sign up for dioty go to http://www.dioty.co/mqtt to get your connection settings that you will use in the app and the ClassicMQTT publisher.

The pre-release version of the Classic Monitor MQTT Subscriber app for Android is available here;

ClassicMonitor_3

https://drive.google.com/drive/folders/1FPijqIw0VuKCE0gOxg3Z0YIddFnxmAuN?usp=sharing

If you have Google Drive installed on your device, simply click on the link to install. You might be asked to allow the installation of an app from an unknown source.

The project for the Android App can be found here.

Once installed, open the app and go click the settings gear.

When the Protocol is set to MODBUS, the app accesses the classic's data directly on your local network using the MODBUS protocol as it does in the Google Play version 2.x of the app. Version 3 of the app includes a new feature that implements the MQTT subscriber protocol.

Here is an example setup using DIoTY. When you create an account on their site, they will send you an email with the required information to setup the app.

Here are the steps to configure MQTT;

Set the Protocol to MQTT.

Enter the IP address or uri of your MQTT broker (mqtt.dioty.co).

Enter the MQTT port (Usually 1883)

Enter the MQTT user & password

Set the Root Topic to what you entered as root topic in the publisher setup

(defaults to ClassicMQTT, dioty uses your email within slashes)

Hit Apply, restart the app.

Hit the 'hamburger' icon to expose the navigation bar, hit '+' and enter the classic name you used when you setup the ClassicMQTT publisher.