Пример #1
0
 def setUp(self):
     print >> sys.stderr, "Discovering Testbed Motes..."
     motelist = self.tb_list(mote_type='sky', verbose=True)
     motelist += '\r\n' + self.tb_list(mote_type='z1', verbose=True)
     for elem in motelist.split('\n'):
         (label, serial, dev, name) = elem.split('\t')
         type=""
         if label[0] == "T":
             type='sky'
         elif label[0] == "Z":
             type='z1'
         if label == self.testmote_label:
             print >> sys.stderr, "Found testmote %s %s" % (label, dev)
             mote = config.moteClass(self, label, dev, type, config.testmote['iid'])
         else:
             mote = config.moteClass(self, label, dev, type)
         self.motelist.append(mote)
         mote.setUp()
Пример #2
0
 def setUp(self):
     print >> sys.stderr, "Discovering Testbed Motes..."
     motelist = self.tb_list(mote_type='sky', verbose=True)
     motelist += '\r\n' + self.tb_list(mote_type='z1', verbose=True)
     for elem in motelist.split('\n'):
         (label, serial, dev, name) = elem.split('\t')
         type=""
         if label[0] == "T":
             type='sky'
         elif label[0] == "Z":
             type='z1'
         if label == self.testmote_label:
             print >> sys.stderr, "Found testmote %s %s" % (label, dev)
             mote = config.moteClass(self, label, dev, type, config.testmote['iid'])
         else:
             mote = config.moteClass(self, label, dev, type)
         self.motelist.append(mote)
         mote.setUp()
Пример #3
0
 def setUp(self):
     mote = config.moteClass(self)
     mote.setUp()
     self.motelist.append(mote)
Пример #4
0
 def setUp(self):
     mote = config.moteClass(self)
     mote.setUp()
     self.motelist.append(mote)