How to initialize GHI RS232 Module using Gadgeteer.SocketInterfaces.Serial

I’m using GHI RS232 module in my NETMF 4.3 project and wonder how I can initialize the module using Gadgeteer.SocketInterfaces.Serial?

I need the Gadgeteer.SocketInterfaces version of serial port implementation because I wanted access to NewLine and RaiseLineReceived() event.

you can create a Gadgeteer app and see the main() initialisation. But you’ll need the full Gadgeteer framework to make this work - you can just write your own handler that is possibly more effective, especially if you’re on a resource limited device and have a big app ?