stm32-fmt-code/access_control_python/access_control_mqtt.py

26 lines
450 B
Python
Raw Normal View History

2023-11-06 06:53:10 +00:00
import paho.mqtt.client as mqtt
2023-11-06 08:42:06 +00:00
import espmega_mqtt.ESPMegaMQTT as ESPMegaMQTT
2023-11-06 06:53:10 +00:00
2023-11-06 08:42:06 +00:00
plc = ESPMegaMQTT()
2023-11-06 06:53:10 +00:00
class access_control:
def __init__(self, serial_port: str):
2023-11-06 08:42:06 +00:00
2023-11-06 06:53:10 +00:00
pass
def light_on(self):
pass
def light_off(self):
pass
def get_door_state(self) -> bool:
pass
def get_scan_state(self) -> bool:
pass
def lock_door(self):
pass
def unlock_door(self):
pass