Since Quicklaunch build 3.0.0.385 the Message Adapter now supports command line arguments.  This will allow the message adapter to be used with multiple devices.  Config files will no longer be necessary.



Command Line Arguments for TCP Communications


-MessageType TCP -ipAddress {ip-address}  -Port {port}  -Message {message}

  -CloseAfterUse {closeAfterUse} 



 
-MessageType
Message type will be TCP


-IpAddress
The TCPIP address to send the message to (i.e. 192.168.1.1)


-Port
The TCP port to send the message to (i.e. 8080)


-Message
the formatted message to send


-CloseAfterUse

optional parameter.  Normally the message adapter will keep the socket open.  Set this parameter to "true" to close the socket after every call.





TCP Examples:


-MessageType Tcp -IpAddress 192.168.45.22 -Port 8080 -Message "Message for Tcp port 8080"


-MessageType Tcp -IpAddress 192.168.45.22 -Port 8080 -CloseAfterUse true -Message "Message for Tcp port 8080 then close"





Command Line Arguments for Serial Communcations


-MessageType SERIAL -Port {port}  -BaudRate {baud-rate} -Parity {parity} -StopBits {stopbits} 

-Message {message}




-MessageType
Message type will be SERIAL


-Port
The the communication port to use (e.g. COM3)


-BaudRate
The rate at which to configure the communication port (e.g 38400)


-Parity
The parity at which to configure the communication port
One of:  [None, Odd, Even, Mark or Space]


-StopBits
The number of stop bits at which to configure the communication port
One of:  [None, One, Two or OnePointFive]


-Message
the formatted message to send


Serial Example:


-MessageType Serial -Port COM3 -BaudRate 38400 -Parity None -StopBits One -Message "Message for Serial"