MQTT Integration

by iotgurulive in Circuits > Arduino

737 Views, 1 Favorites, 0 Comments

MQTT Integration

IMG_20181124_192803.jpg

How It Will Be Work?

MQTT integration

You can switch on and off the LED of the ESP8266 with your mobile phone.

Install the Example Code on Your IoT Device

github_mqtt_example.png

ESP8266

You can simply clone the GitHub repository: https://github.com/IoTGuruLive/mqtt_example

Replace the WiFi SSID and password in the code, compile it and install it on an ESP8266 board.

Other device

You need to implement the MQTT topic subscription with the following parameters:

MQTT server name: mqtt.iotguru.live
MQTT server port: 1883
MQTT server username: mqttReader
MQTT server password: mqttReader
Subscription topic: sub/jPtvDXpb7zm375MtAKpELg/led
Subscription topic: sub/{nodeKey}/{field}

Install the Android Application on Your Phone

Screenshot (24 Nov 2018 14:23:47).png

Sign in and Validate Your Email Address

Screenshot (24 Nov 2018 14:19:16).png

Sign in and validate your email address, and you can see the dashboard with the node key, the field and the switch buttons. Also, you can use the application to draw charts of your measurements... :)