I want to send data out of my C++ program into a tty port. However, I am experiencing significant problems regarding using system(echo > tty) and ofstream dev(tty).
I found that the only thing that works is screen tty.device from the command line, so is it possible for me to open up my device using screen from c++ and then send data to it from my c++ program?
Python is fine too if a solution exists.