4 * Example program to read bytes from the Serial line
12 #include <wiringSerial.h>
18 if ((fd = serialOpen ("/dev/ttyAMA0", 115200)) < 0)
20 fprintf (stderr, "Unable to open serial device: %s\n", strerror (errno)) ;
24 // Loop, getting and printing characters
28 putchar (serialGetchar (fd)) ;