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
|