From e5ed0cccc7bb0b4d3c2b804de1ac56084f9ea36d Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Mon, 13 Mar 2017 16:14:22 +0100 Subject: [PATCH] Closedown --- script/test/onewire.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/script/test/onewire.py b/script/test/onewire.py index 422f5f5..fea0052 100644 --- a/script/test/onewire.py +++ b/script/test/onewire.py @@ -26,18 +26,25 @@ class Esera(TcpDevice): def list(self): self.write("get,owb,listall1\n") - def doInitialize(self): + def doInitialize(self): + super(Esera, self).doInitialize() + + self.setState(State.Ready) #So can communicate self.stop() time.sleep(0.1) self.flush() self.detectors = [] for i in range(30): - self.detectors.append(Detector()) + self.detectors.append(Detector()) self.list() self.start() + + def onByte(self, rx): + print rx - def onString(self, str): - print str + + def onString(self, msg): + print "HERE"