You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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#L231
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 sowrite()
itself won't block.The text was updated successfully, but these errors were encountered: