This code belongs to the following tutorial: https://www.mac-usb-serial.com/wordpress/serial-port-programming-swift-mac-os-x/
This code depends on ORSSerialPort, please read the tutorial how to download the dependencies
Written by http://www.mac-usb-serial.com