We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52f7488 + 1de7ea4 commit 04c84beCopy full SHA for 04c84be
adafruit_ble/uart.py
@@ -125,4 +125,8 @@ def reset_input_buffer(self):
125
126
def write(self, buf):
127
"""Write a buffer of bytes."""
128
- self._nus_tx_char.value = buf
+ # We can only write 20 bytes at a time.
129
+ offset = 0
130
+ while offset < len(buf):
131
+ self._nus_tx_char.value = buf[offset:offset+20]
132
+ offset += 20
0 commit comments