I'm having a hard time figuring out how to properly use the RXTX transport (from Git as of today).
I'm able to write inbound handlers which consumes content read from the serial port, decode it, and send some other content to the serial port via a custom outboundhandler. So far fine.
Now, there is a use-case where I need to write a message through a MessageToByteEncoder (the same custom outboundhandler I talked about before) from the main program (in the end, this will actually be a library using Netty underneath). So basically, I'm trying to do the same as the above scenario except I don't go through the decoders and send the message to be written from the main program and not an inbound handler. This scenario does not seem to work in my case: nothing seems to happen, as if my message was not sent. Unfortunately, there is not a lot of log statements in Netty and I may be wrong but the issue I have may surface because the main thread is not in the event loop (no surprise here! :)).
Unfortunately, the RXTX example only write messages from an inbound handler (via the ChannelHandlerContext), so I can't find out what I'm doing wrong or if there is a bug to this really recent addition in Netty.
Any suggestions?