Ejemplo n.º 1
0
 def wait_for_joined(self):
     try:
         self.enable_permit_join()
         print "Please initiate the inclusion process on the device"
         self.dut_node_id = ZBController.wait_for_join(self)
         self.disable_permit_join()
     except NetworkOperationError:
         print "Error joining device. Trying to form a new network"
         self.form_network()
         self.enable_permit_join()
         print "Please initiate the inclusion process on the device"
         self.dut_node_id = ZBController.wait_for_join(self)
         self.disable_permit_join()
Ejemplo n.º 2
0
 def wait_for_joined(self):
     try:
         self.enable_permit_join()
         print "Please initiate the inclusion process on the device"
         self.dut_node_id = ZBController.wait_for_join(self)
         self.disable_permit_join()
     except NetworkOperationError:
         print "Error joining device. Trying to form a new network"
         self.form_network()
         self.enable_permit_join()
         print "Please initiate the inclusion process on the device"
         self.dut_node_id = ZBController.wait_for_join(self)
         self.disable_permit_join()