WiFi light switch via MQTT or Web with WebConfig
Posted: Tue Jun 30, 2015 1:44 am
Hi,
also I would like to contribute to this community.
My friend (hardware) and me (coding) have build a WiFi switch for a light (or any 230V device).
Without WiFi connection it will provide an AP with config page. There the IOT mode can be set to control via Web Interface (URL get) or to MQTT with settings.
The final board is not ready yet but the code works very reliable. (Made sure that button works at anytime).
The code used parts from this forum and GitHub (Sorry if I missed a credit, just let me know and I'll add it).
More infos on the Gitpage:
https://github.com/biohazardxxx/ESP_WiFiSwitch
Even the code is quite specific, some parts might be reusable for other projects.
Features are:
also I would like to contribute to this community.
My friend (hardware) and me (coding) have build a WiFi switch for a light (or any 230V device).
Without WiFi connection it will provide an AP with config page. There the IOT mode can be set to control via Web Interface (URL get) or to MQTT with settings.
The final board is not ready yet but the code works very reliable. (Made sure that button works at anytime).
The code used parts from this forum and GitHub (Sorry if I missed a credit, just let me know and I'll add it).
More infos on the Gitpage:
https://github.com/biohazardxxx/ESP_WiFiSwitch
Even the code is quite specific, some parts might be reusable for other projects.
Features are:
- MQTT late bind (since we only know the server after it was setup)
Button software debounce
MQTT receive
MQTT publish
Ticker for button handling
Button control to switch , restart and reset (clear eeprom)
WebServer with config
EEPROM store and read