Reading serial port in c++/python/shell programs
The repo contains code for reading serial port in C++/python/shell programs. It can be very useful in communication with embedded devices or sensors.
g++ serialRead.cpp -o main
./main serial_port
(Sample: ./main /dev/ttyUSB0 , where /dev/ttyUSB0 is the port to be read)
python serialRead.py /dev/ttyUSB0
./serialRead.sh /dev/ttyUSB0