Automation using the xAP protocol library on the ESP8266 microcontroller