parameters: (self)
docstring: Sends messages and commands to the other nodes.
docstring_summary: Sends messages and commands to the other nodes.
docstring_tokens: Sends messages and commands to the other nodes .
function: def sendNodeCmds(self): # Send command/data messages to other nodes
          """Sends messages and commands to the other nodes."""
          # Send any buffered data
          for comm in self.nodeComm:
              nodeThreadMsg = NodeThreadMsg()
              nodeThreadMsg.timestamp = time.time()
  
              for dest in range(len(self.nodeController.queueOut)):
                  if (self.nodeController.queueOut[dest]):
                      msg = self.nodeController.queueOut[dest]
  
                      # Add command to outgoing message
                      cmd = nodeThreadMsg.cmds.add()
                      cmd.destId = dest + 1
                      cmd.msgBytes = msg
  
                      # Clear outgoing message
                      self.nodeController.queueOut[dest] = b''
  
              if (len(nodeThreadMsg.cmds) > 0): # Transmit message
                  comm.sendMsg(nodeThreadMsg.SerializeToString())
function_tokens: def sendNodeCmds ( self ) : # Send command/data messages to other nodes # Send any buffered data for comm in self . nodeComm : nodeThreadMsg = NodeThreadMsg ( ) nodeThreadMsg . timestamp = time . time ( ) for dest in range ( len ( self . nodeController . queueOut ) ) : if ( self . nodeController . queueOut [ dest ] ) : msg = self . nodeController . queueOut [ dest ] # Add command to outgoing message cmd = nodeThreadMsg . cmds . add ( ) cmd . destId = dest + 1 cmd . msgBytes = msg # Clear outgoing message self . nodeController . queueOut [ dest ] = b'' if ( len ( nodeThreadMsg . cmds ) > 0 ) : # Transmit message comm . sendMsg ( nodeThreadMsg . SerializeToString ( ) )