Closedown
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user