Skip to content

Relay Control via Web UI using MQTT protocol over WiFi-ESP8266 module

Notifications You must be signed in to change notification settings

cdiaz/esp8266-mqtt-relay-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Relay Control via Web UI using MQTT protocol over WiFi-ESP8266 module

Requirements:

  • ESP8266 Module
  • Arduino core for ESP8266 (version 2.2.0 minimum)
  • Basic knowledge of the Arduino environment (upload a sketch, import libraries, ...)

Run MQTT Server:

Docker mode:

  • Build image and run container (first time)
make run
  • Start container on interactive mode
make start-i
  • Start container on detached mode (background)
make start-d
  • Stop container
make stop

Prepare ESP8266 Module:

Install Arduino Client for MQTT

  • Download PubSubClient library
  • Load the .zip with Sketch → Include Library → Add .ZIP Library

Upload Sketch

Access to Web UI

Navigate to http://localhost

About

Relay Control via Web UI using MQTT protocol over WiFi-ESP8266 module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published