Haiku openSerialPort returns undefined

dave123

New Member
I'm trying to write to a serial port in a HaikuHelper script, but the command below returns 'undefined'.

var port = helper.openSerialPort(controller, '/dev/cu.usbserial-FTS0FOSL');


I know the serial port works as I can read/write to it with ZTerm or Python.

Any ideas what I'm doing wrong, or how to go about debugging this?

Thanks,
Dave
 
Unfortunately this appears to be due to the Apple Sandbox not allowing access to /dev/cu.usbserial-FTS0-FOSL. We're looking into how/if its possible to correct.
 
No, socket communication should still work. You can work around the serial port issue for now by using a proxy PHP script (hosted on the local server) that forwards messages to the serial port, for example.
 
Back
Top