... with Apple HomeKit! This library is built with ESP8266 Arduino Core 2.6.3. Lower versions may compile with errors. For ESP32, see Arduino-HomeKit-ESP32. The HomeKit running on ESP32 has a GREAT PERFORMANCE which is 10x faster than ESP8266. You should set the ESP8266 CPU to run at 160MHz (at least during the pairing process), to avoid the tcp-socket disconnection from the iOS device caused by a timeout.