Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.51k stars 277 forks source link

added lock-mechanism #113

Closed me-cooper closed 3 years ago

me-cooper commented 3 years ago

++ lock-mechanism with 2 easy to use functions

void open_lock(){
  Serial.println("unsecure"); 
  // add your code here eg switch a relay or whatever 
}

void close_lock(){
  Serial.println("secure");  
  // add your code here eg switch a relay or whatever
}