The FIONREAD ioctl returns the number of bytes present in the serial input buffer. ioctl(fd, FIONREAD, &bytes);. Let's write a sample code to ...
確定! 回上一頁