How do I tell screen not to send each character but entire lines?
QuoteHow do I tell screen not to send each character but entire lines?You don't. You fix your sketch so that it simply reads and stores the data until the end-of-line marker arrives.
That whole sketch is based on the erroneous assumptions that all the data that is a packet will arrive very quickly, and that there will be a significant pause between packets.Not robust code at all.
I´m inclined to use linefeed as end token