Arduino-HardwareBLESerial icon indicating copy to clipboard operation
Arduino-HardwareBLESerial copied to clipboard

Added a `write_buf` function to write one chunk of data directly

Open gavincangan opened this issue 2 years ago • 1 comments

Since the buffer size can be overridden, this could help cases where someone needs to send a small chunk of data without breaking it up across multiple messages. I needed this to reduce latency

gavincangan avatar Jul 19 '23 07:07 gavincangan

Btw I'm not sure if should perhaps call it write, since there's an overloaded write(uint8_t* buf, size_t len) function in the original Serial class

gavincangan avatar Jul 19 '23 09:07 gavincangan