i want to get available com ports in Linux (ttys) and write array in one of them by c console app . i read this question Read 0 bytes after writing to /dev/ttyS0 i want a sample like this in cpp
CodePudding user response:
this is full sample : linux-serial-ports-using-c-cpp