we are trying to use a Lidar sensor (TF-Luna though I doubt it matters) on the RS-232 port but the constructor in serial port throws an unknown exception
It does work when using the MXP port but for some reason, the native method throws this random exception when using the OnBoard option with no real explanation.
This is what we provide to the ctor:
new SerialPort(115200, SerialPort.Port.kOnboard, 8 ,SerialPort.Parity.kNone, SerialPort.StopBits.kOne);
All params as per sensor specs.
We use an empty code so I don’t see any reason for this to happen.
Thanks in advance!
Edit: we are using version