Giter Club home page Giter Club logo

esp8266_01_mqtt_to_relay's Introduction

esp8266_01_mqtt_to_relay

Using the ESP8266-01 module to control a Relay using MQTT


Arduino IDE Config:

Required Libaries

Board Config


Details required:

Fill the following details for connecting to the WiFi router (at your home):

  • WLAN_SSID
  • WLAN_PASS

As this is a Demo project, I have used AdaFruit IO's Feeds as the MQTT Broker to communicate with the Device. (see https://accounts.adafruit.com).

You will need the following details of your AdaFruit IO (AIO) account:

  • AIO_USERNAME
  • AIO_KEY <= This can be accessed/generated from: https://io.adafruit.com/<AIO_USERNAME>/dashboards (look for the "My Key" tab on the menubar).
  • AIO_MQTT_FEED_ONOFFBUTTON <= The name of the feed to which the Device should subscribe (would start with something like "/feeds/<FEED_NAME>").

References

  1. Using ESP8266 GPIO0/GPIO2/GPIO15 pins
  2. How to Use the ESP8266-01 Pins and Leds
  3. ESP8266 Pinout Reference
  4. Beginners Guide To The Paho MQTT Python Client
  5. http://test.mosquitto.org/

esp8266_01_mqtt_to_relay's People

Contributors

axedge avatar

Watchers

 avatar

esp8266_01_mqtt_to_relay's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.