parameters: (self, msg, args)
return_statement: return False
docstring: Processes parsed serial messages.
          Args:
              msg: Serial message to be processed.
              args: Other arguments needed for processing serial message.
docstring_summary: Processes parsed serial messages.
          Args:
              msg: Serial message to be processed.
              args: Other arguments needed for processing serial message.
docstring_tokens: Processes parsed serial messages . Args : msg : Serial message to be processed . args : Other arguments needed for processing serial message .
function: def processMsg(self, msg, args):
          """Processes parsed serial messages.
          Args:
              msg: Serial message to be processed.
              args: Other arguments needed for processing serial message.
          """
          if len(msg) > 0:
              try: 
                  nodeStatus = args['nodeStatus']
                  comm = args['comm']
                  clock = args['clock']
      
                  # Parse command header
                  cmdId = unpack('B',msg[0:1])[0]
                  header = deserialize(msg, cmdId, 'header')
                  if (processHeader(self, header, msg, nodeStatus, clock, comm) == False): # stale command
                      return False
  
                  # Pass command to proper processor
                  for processor in self.msgProcessors:
                      if cmdId in processor['cmdList'].values():
                          return processor['msgProcessor'](self, cmdId, header, msg, args)
                          break
              
              except Exception as e:
                  print("Exception occurred while processing message:", e)
                  return False
  
          return False
function_tokens: def processMsg ( self , msg , args ) : if len ( msg ) > 0 : try : nodeStatus = args [ 'nodeStatus' ] comm = args [ 'comm' ] clock = args [ 'clock' ] # Parse command header cmdId = unpack ( 'B' , msg [ 0 : 1 ] ) [ 0 ] header = deserialize ( msg , cmdId , 'header' ) if ( processHeader ( self , header , msg , nodeStatus , clock , comm ) == False ) : # stale command return False # Pass command to proper processor for processor in self . msgProcessors : if cmdId in processor [ 'cmdList' ] . values ( ) : return processor [ 'msgProcessor' ] ( self , cmdId , header , msg , args ) break except Exception as e : print ( "Exception occurred while processing message:" , e ) return False return False