I have a windows program (my own software) getting a constant stream of data from a Mega via the Serial Port with a simple, "Serial.println(dataStr);" to the PC com port.
The PC program sometimes needs to do stuff, so I'd like the PC to be able to pause the incoming stream for about half a second. I don't mind losing some data stream as it is very repetitive and any gaps would be minor, maybe half a second or so.
How can I get the the Mega to pause sending? Is there a DSR or something that does not trigger a reboot of the Mega?
If I close the incoming Port, then it reboots the Mega when I open it again, which I definitely do not want.