Fix Esera device
This commit is contained in:
@@ -28,6 +28,7 @@ class Esera(TcpDevice):
|
||||
self.setMode(self.Mode.FullDuplex)
|
||||
self.detectors = []
|
||||
self.completed_initializatiod = False
|
||||
self.debug = False
|
||||
|
||||
def start(self):
|
||||
self.getLogger().info("Starting controller")
|
||||
@@ -78,7 +79,8 @@ class Esera(TcpDevice):
|
||||
self.start()
|
||||
|
||||
def onString(self, msg):
|
||||
#print datetime.now() , " - " , msg
|
||||
if self.debug:
|
||||
print datetime.now() , " - " , msg
|
||||
tokens = msg.split("|")
|
||||
if len(tokens)>1:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user