Small application for switching any device over your local network. The application can switch any IOT over the Internet too, but I must warn you that the https protocol is not implemented yet. Here is my arduino source code: https://github.com/gergelya1234/wifi-switch-esp8266