sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
463 stars 180 forks source link

How to send more than 20bytes in each transaction with bleSerial.write()? #285

Open pvonmoradi opened 3 years ago

pvonmoradi commented 3 years ago

There is a serial over BLE (Nordic UART) example in the tree. Problem is, it seems it can't send more than 20 bytes on each transfer. The code relies on BLE_ATTRIBUTE_MAX_VALUE_LENGTH which is set to 20. Increasing this value doesn't seem to have any effect (still sends 20 bytes max). How to increase this limit?

https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/161a4163f565be3cd5b62bbc59f0c2b522d82b02/examples/serial/BLESerial.h#L31