I would like to send but especially receive serial communication using the RS-232 standard. I would like to write a python program to receive data and then write it to files when they come down the line.
How do i write a program in Python to block while waiting for data to arrive instead of spinning in a loop and checking?