ESP8266 remote controller via MQTT
This program allows us to control a relay attached to an ESP8266 (over NodeMCU board) through the MQTT protocol. With the mobile app, we can control it from anywhere.
Navigation
How can I collaborate?
Instructions
✌️ Fork this repository and clone through terminalgit clone <url>
.📂 Set the directory on the cloned foldercd <folder>
.📝 Modify the project as you wish.✨ Stage the changesgit add *
and create new commit:git commit -am "Summary of changes"
.⬆️ Upload your work:git push origin master
.✉️ Feel free to initiate a pull request :D
Si deseas aprender Git, visita mi guía sobre Git.
Index
1. Functionality
MQTT is a machine-to-machine "Internet of Things" connectivity protocol and a extremely lightweight publish/subscribe messaging transport.
This application connects to a MQTT broker (wich you can find for free) and listens to the topic lights
under home
(/home/lights
). If it receives '1' or '0' starting strings, the ESP will turn on or off a relay wich controls lights. It also publishes status info at the topic /home/log
.
I also made a simple Android app for this program at this repository.
2. How to use
You will need:
You will need the knolleary's great PlatformIO home
at Atom, Libraries
.
Finally, in case you need in depth information about hardware or library, checkout his repo