Hi,
I want to create a virtual serial port on my iMac, and link this to a TCP Server on the iMac listening on a specified port. On my Yun, I can use client.connect(ip,port) to transfer data between the iMac and my sketch.
I have an OSX application I can't modify that will use the virtual serial port.
I can see the following command creates my virtual serial port (ttyV0) on the iMac:
socat pty,link=$HOME/dev/ttyV0,waitslave tcp:SerialMachine:3333
but only listens to SerialMachine on port 3333. I need it to be a TCP server to SerialMachine instead of a listener.
Any help much appreciated.