Skip to content

pavelkrcma/esp8266-wallplug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

esp8266-wallplug

ESP based Relay Board

Setup

There is a Wifi Manager with custom parameters. After first power on or if you hold Button1 during boot, a new wifi AP with name esp-xxxxxx appears and LED starts blinking. String after esp- in the wifi AP name is taken from serial number of the chip. You can config both Wifi and MQTT server on the config page. There are no hardcoded values in the code.

I also added Arduino OTA code. OTA is protected by password (see the code). An important note: make sure that your project setting of Flash size is at least double of size of the compiled program. Otherwise OTA fails on out-of-memory.

Usage

You can control LED and both relays by MQTT messages.

Topic is constructed under schema: nodes/(mqtt_user_name)/commands/outlet/[1|2] or nodes/(mqtt_user_name)/commands/led

Message could be either ON, OFF or TOGGLE (uppercase only)

About

ESP based Relay Board

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%