How can I read a serial port using XCode?
Hello,
I'm using an iMac 2009 with Mac OS X 10.6.7. I have a USB to Serial cable and I want to connect a hardware I made using a microprocessor Microchip PIC to my mac. I'd like to read values from the serial port and also write values to it. I'm already able to do this using the Terminal with the following command:
screen /dev/tty.usbserial 9600
I'd like to build my own application now. Does anyone could send me any sample code?
I'm using XCode 3.2.5 and I'm a beginner on XCode.
iMac, Mac OS X (10.6.4)