Post here first, or if you can't find a relevant section!
- Posts: 1855
- Joined: Mon Apr 27, 2015 12:12 pm
So if we use this method:
Code: Select all
Serial.begin(<baudrate>, bool blocking = 1 or 0); // 0 per default
What would be the expectation if the user uses the following cases?
Would you expect those to cause write() to return immediately if there is no buffer space, or would one act different than the other?
Also, what about:
Would that case cause write() to block indefinitely, or only block for a timeout matching 115200 bps?
- Posts: 2043
- Joined: Mon Oct 19, 2015 12:06 am
- Location: Munich, Germany
As I don't prefer timeout, the
should block, meaning don't return till all bytes are sent (put into Tx buffer).