From 495e068c8a93e638b2a30c2f63a1288fb34b5e46 Mon Sep 17 00:00:00 2001 From: dandaedre Date: Wed, 29 Sep 2021 11:02:08 +0200 Subject: [PATCH] Started RegEx implementation --- bindings.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bindings.py b/bindings.py index 9eb7a73..1163a61 100755 --- a/bindings.py +++ b/bindings.py @@ -3,9 +3,9 @@ ################################ # IMPORTS # import socketserver -import socket +import socket, threading import sys -import threading +import re ################################ # CONFIG VARIABLES @@ -78,6 +78,9 @@ _FILTER={ "No filter":0 } +################################ +# Regex for messages + ################################ # CLASS DEFINITIONS @@ -127,7 +130,8 @@ class analogController(object): It is recommended to check that this value matches the one expected by the controller. [VEvar] (VEvar) """ - pass + self.sendData("VEvar") + self.waitfor(b'DEV259\r') def getStatus(self,value=3): """Reading a change of values