Using MQTT interface. #2

This article describes the setting for receiving data from the cloud MQTT server on an Android smartphone.

And so, the energy consumption data measured by the energy meter is transmitted to the cloud server MQTT. 

But how to use them? For this we need a client for a smartphone.

Install on Android smartphone app MQTT Dash

Image 28

Run the application on your smartphone and configure it. 

To add a connection to the server click "+". And in the new window we fill in the Server, User, Password and Port fields:

And after filling in all the fields, do not forget to click on the diskette to save.

Image 51

Image 52

And after filling in all the fields, do not forget to click on the diskette to save.

Image 34

Image 35

Click on the created connection and if there were no errors, then we are connected to the CloudMQTT server. Click “+” to create widgets. 

Choose the type "Text".

Image 36

Image 37

In the Topic (sub) field we enter the number of your device and after the point the parameter (V, W, A ...) that we want to watch. 

A description of all the parameters that are sent by the device to the MQTT server can be found in the User Guide.

Image 41

Image 39

After saving the settings, you can view the current measurements of the device in real time.

If you need to display other measurement parameters, for ease of creating widgets, you can clone them by pressing a finger on the widget and holding it.

A menu will appear:

Image 53

A duplicate widget will appear on the screen, which is easy to edit by changing the name and the letter in the topic after the point. To control the "Dry Contact" device, you need to create a widget with the type "Switch / button":

Image 54

Customize the color and image of the button.

Image 55

Image 56

Enjoy control and management:

Image 57

Image 58

Similarly, you can install and configure the MQTT client on an iOS smartphone.

In the next article we will describe what additional settings of the widgets can be made for better monitoring and control of the energy meter.

This article was helpful for 32 people. Is this article helpful for you?