Multiple connect() on serial device

2013-08-29 Thread lleclerc
Hello, I have an apps that needs to connect to multiple serial devices while (true) for (tty : devicesNotYetConnected) { serialConnector.connect(new SerialAddress(tty, 9600,SerialAddress.DataBits.DATABITS_8, SerialAddress.StopBits.BITS_1,

Sending multiples message in stream

2013-07-26 Thread lleclerc
Hello, I am currently using a CumulativeProtocolDecoder, maybe I am not using right component, haven't found anything else. I have a session that will send messages of different size, from a string to an image. Right now I added an Header that have the message size and read in a buffer until is