From 21adc2c8f4eeec71b438357313f382645c736299 Mon Sep 17 00:00:00 2001 From: Yeo Kheng Meng Date: Thu, 27 Oct 2016 09:24:24 +0800 Subject: [PATCH] add comment for Mac that root is not required to access serial port --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index afeec95..ec9150c 100644 --- a/README.md +++ b/README.md @@ -66,9 +66,13 @@ To get started quickly, you can take a look at my example project [here](Example git clone https://github.com/yeokm1/SwiftSerial.git cd SwiftSerial/Examples/SwiftSerialExample/ swift build -#You need root to access the serial port. Replace /dev/ttyUSB0 with the name of your serial port under test + +#For Linux: You need root to access the serial port. Replace /dev/ttyUSB0 with the name of your serial port under test sudo ./.build/debug/SwiftSerialExample /dev/ttyUSB0 +#For Mac: Root is not required +./.build/debug/SwiftSerialExample /dev/tty.usbserial + #If all goes well you should see a series of messages informing you that data transmitted has been received properly. ```