On other boards, I typically have large amounts of serial traffic to send periodically and will store it in a byte array. I use the availableToWrite() to check whether bytes can be written and only write until the ring buffer is full so write() itself won't block.
Greetings, this is a feature request to implement Arduino's
HardwareSerial::availableForWrite()
. Because of the limited ring buffer size, any call toHardwareSerial::write()
that exceeds the available space in the ring buffer will cause that function call to block. https://github.com/energia/Energia/blob/master/hardware/msp430/cores/msp430/HardwareSerial.cpp#L231On other boards, I typically have large amounts of serial traffic to send periodically and will store it in a byte array. I use the
availableToWrite()
to check whether bytes can be written and only write until the ring buffer is full sowrite()
itself won't block.