MQTT Integration

About: Cloud services for IoT projects

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

Be the First to Share

    Recommendations

    • Assistive Tech Contest

      Assistive Tech Contest
    • Reuse Contest

      Reuse Contest
    • Made with Math Contest

      Made with Math Contest

    Discussions