|Number of watchers on Github||49|
|Number of open issues||6|
|Average time to close an issue||2 months|
|Open pull requests||1+|
|Closed pull requests||1+|
|Last commit||about 3 years ago|
|Repo Created||over 3 years ago|
|Repo Last Updated||11 months ago|
|Organization / Author||biohazardxxx|
|Do you use ESP_WiFiSwitch? Leave a review!|
|View open issues (6)|
|View ESP_WiFiSwitch activity|
|View on github|
|Fresh, new opensource launches 🚀🚀🚀|
Trendy new open source projects in your inbox! View examples
This sketch is for a WiFi enabled wall light switch with focus to reliable pushbutton switch. In the beginning or (if no WiFi connection) it is running a web server to configure WiFI (and MQTT if desired). Each second start up switch will load into OTA mode. By this you can upload a new firmware (compiled *.bin file) via web browser. The OTA mode will end after set timeout and restart into desired mode. The operation mode can be web server or MQTT to change the state of the light. The push button have to switch to ground.
While a WiFi config is not set or can't connect:
While a WiFi config is set and in Web control mode (iotMode==0):
While in OTA mode each second start:
server_ip is the IP address of the ESP8266 module, will be printed to Serial when the module is connected.
Your WiFi switch should be connected like this
You can reorder the working PCB here: https://oshpark.com/shared_projects/xoEZ3PnV or get it from any where else from the KiCad design files
For default usage you can use the pre build firmware and flash it with NodeMcu flasher.
After fresh flash please restart the module manualy (power Off & On) otherwise software restart will not work and sometimes WiFi connect does not work.
When manually compile and flash with Arduino IDE please make sure to have this flash settings:
Open the modules page after entering config mode (Press button >20secs if you want to enter again) via http://server_ip there you can setup to be MQTT controled or Web controled.
For several snippets used the credit goes to: