MQTT Integration

Step 1: How It Will Be Work?

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

Step 2: Install the Example Code on Your IoT Device

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}

Step 3: Install the Android Application on Your Phone

Step 4: Sign in and Validate Your Email Address

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... :)

Share

    Recommendations

    • Toys Contest

      Toys Contest
    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • Big and Small Contest

      Big and Small Contest

    Discussions