pylon:
flush is for the output buffer only.
This is not true as the posted code from SoftwareSerial show. It clear the input buffer only.
OK, can I get a good explanation of what the flush() does and when it is good to use it?
if it clears the input only, then why must it wait until all outgoing data is sent. Is it the same buffer?
It almost seems that .flush() is one of those things that really isn't needed, but it's there.