parameters: (self, xPanId)
docstring: set extended PAN ID of Thread Network
  
          Args:
              xPanId: extended PAN ID in hex format
  
          Returns:
              True: successful to set the extended PAN ID
              False: fail to set the extended PAN ID
docstring_summary: set extended PAN ID of Thread Network
docstring_tokens: set extended PAN ID of Thread Network
function: def setXpanId(self, xPanId):
          """set extended PAN ID of Thread Network
  
          Args:
              xPanId: extended PAN ID in hex format
  
          Returns:
              True: successful to set the extended PAN ID
              False: fail to set the extended PAN ID
          """
          xpanid = ''
          print('%s call setXpanId' % self.port)
          print(xPanId)
          try:
              if not isinstance(xPanId, str):
                  xpanid = self.__convertLongToHex(xPanId, 16)
  
                  cmd = self.wpan_cmd_prefix + 'setprop Network:XPANID %s' % xpanid
                  datasetCmd = self.wpan_cmd_prefix + 'setprop Dataset:ExtendedPanId %s' % xpanid
              else:
                  xpanid = xPanId
                  cmd = self.wpan_cmd_prefix + 'setprop Network:XPANID %s' % xpanid
                  datasetCmd = self.wpan_cmd_prefix + 'setprop Dataset:ExtendedPanId %s' % xpanid
  
              self.xpanId = xpanid
              self.hasActiveDatasetToCommit = True
              return self.__sendCommand(cmd)[0] != 'Fail' and self.__sendCommand(datasetCmd)[0] != 'Fail'
          except Exception as e:
              ModuleHelper.WriteIntoDebugLogger('setXpanId() Error: ' + str(e))
function_tokens: def setXpanId ( self , xPanId ) : xpanid = '' print ( '%s call setXpanId' % self . port ) print ( xPanId ) try : if not isinstance ( xPanId , str ) : xpanid = self . __convertLongToHex ( xPanId , 16 ) cmd = self . wpan_cmd_prefix + 'setprop Network:XPANID %s' % xpanid datasetCmd = self . wpan_cmd_prefix + 'setprop Dataset:ExtendedPanId %s' % xpanid else : xpanid = xPanId cmd = self . wpan_cmd_prefix + 'setprop Network:XPANID %s' % xpanid datasetCmd = self . wpan_cmd_prefix + 'setprop Dataset:ExtendedPanId %s' % xpanid self . xpanId = xpanid self . hasActiveDatasetToCommit = True return self . __sendCommand ( cmd ) [ 0 ] != 'Fail' and self . __sendCommand ( datasetCmd ) [ 0 ] != 'Fail' except Exception as e : ModuleHelper . WriteIntoDebugLogger ( 'setXpanId() Error: ' + str ( e ) )