Closedown

This commit is contained in:
gac-S_Changer
2017-03-13 16:14:22 +01:00
parent 8a47aab29f
commit e5ed0cccc7

View File

@@ -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"