Creates a serial port object for an arbitrary device path. Unlike createPortNamed(), the path does not need to correspond to a port currently discoverable via IOKit — it is only validated when you call open().
createPortNamed()
open()
The device path (e.g. "/dev/cu.usbserial-1420")
"/dev/cu.usbserial-1420"
A new HSSerialPort
HSSerialPort
Creates a serial port object for an arbitrary device path. Unlike
createPortNamed(), the path does not need to correspond to a port currently discoverable via IOKit — it is only validated when you callopen().