Skip to content

Aruduino sketch for controlling ESP-01 single relay board

Notifications You must be signed in to change notification settings

laytll/ESP-01_Relay_MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

ESP-01-MQTT

Aruduino sketch for controlling ESP-01 single relay board

image

This is a sketch for the cheap single relay boards that have an ESP-01. Not tested with ESP-01S but should work.

ESP has Tx only enabled to free IO 2 & 3 for later use Tx is only really used for checking WiFi or MQTT status It connects to an MQTT server then:

  • announces connection with unqiue ESP8266 chip ID
  • switches relay low
  • publishes heartbeat relay state on relay01/status
  • waits for a message 0 or 1 in relay01/set/request
  • confirms success in relay01/set/response

To install the ESP8266 board, (using Arduino 1.6.4+):

About

Aruduino sketch for controlling ESP-01 single relay board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages