parameters: (self)
docstring: power up the Thread device
docstring_summary: power up the Thread device
docstring_tokens: power up the Thread device
function: def powerUp(self):
          """power up the Thread device"""
          print('%s call powerUp' % self.port)
          if not self.handle:
              self._connect()
  
          self.isPowerDown = False
          if self.__sendCommand(self.wpan_cmd_prefix + 'attach')[0] != 'Fail':
              time.sleep(3)
          else:
              return False
  
          if self.__sendCommand(self.wpan_cmd_prefix + 'setprop Daemon:AutoAssociateAfterReset true')[0] == 'Fail':
              return False
  
          if self.__stripValue(self.__sendCommand(self.wpan_cmd_prefix + 'getprop -v NCP:State')[0]) != 'associated':
              print('powerUp failed')
              return False
          else:
              return True
function_tokens: def powerUp ( self ) : print ( '%s call powerUp' % self . port ) if not self . handle : self . _connect ( ) self . isPowerDown = False if self . __sendCommand ( self . wpan_cmd_prefix + 'attach' ) [ 0 ] != 'Fail' : time . sleep ( 3 ) else : return False if self . __sendCommand ( self . wpan_cmd_prefix + 'setprop Daemon:AutoAssociateAfterReset true' ) [ 0 ] == 'Fail' : return False if self . __stripValue ( self . __sendCommand ( self . wpan_cmd_prefix + 'getprop -v NCP:State' ) [ 0 ] ) != 'associated' : print ( 'powerUp failed' ) return False else : return True