diff --git a/python/example-processor.py b/python/example-processor.py index c1a5257..1cc6187 100644 --- a/python/example-processor.py +++ b/python/example-processor.py @@ -19,6 +19,7 @@ def send_http_post(prefix,value): response = requests.post(url, data=data_to_post) if response.status_code is 200: print(f"Sent FULL_CARD_ID: {value} via HTTP POST successfully") + ser.write("unlock".encode('utf-8')) else: print(f"Failed to send FULL_CARD_ID via HTTP POST. Status code: {response.status_code}") @@ -35,7 +36,8 @@ try: actions = { "LOG_MSG": handle_log_msg, "FULL_CARD_ID": send_http_post, - "DOOR_DISABLED_STATUS": handle_log_msg + "DOOR_DISABLED_STATUS": handle_log_msg, + "DOOR_LOCK_STATUS": handle_log_msg } if prefix in actions: