ARMmbed / mbed-os-example-ble

BLE demos using mbed OS and mbed cli
Apache License 2.0
134 stars 118 forks source link

Sending more than 13 bytes payload in adv packet causes BUFFER_OVERFLOW. #267

Closed ashok-rao closed 4 years ago

ashok-rao commented 4 years ago

I'm using the BLE_GAPButton example and trying to send 15 packets in the advertisement payload. Contents of adv packet are: default flags, device name (5 chars), local service list along with 15 packets of data. However, I get the following buffer_overflow error when using on a Laird BL654 module (based on nRF52840).

DEVICE MAC ADDRESS: de:4b:ed:17:be:63
Button Count = 0
Error code = 1
Updating payload failed: BLE_ERROR_BUFFER_OVERFLOW: The requested action would cause a buffer overflow and has been aborted
Button Count = 1
Error code = 1
Updating payload failed: BLE_ERROR_BUFFER_OVERFLOW: The requested action would cause a buffer overflow and has been aborted

@pan- has kindly already fixed the issue locally (since we were blocked for a customer demo tomorrow). Thank you @pan- . The patch is attached below: data-builder.zip

Currently, I'm not advertising the local service list & for now, that's a compromise that is OK to make.

ciarmcom commented 4 years ago

Internal Jira reference: https://jira.arm.com/browse/IOTPAN-517

ciarmcom commented 4 years ago

Thank you for raising this issue. Please note we have updated our policies and now only defects should be raised directly in GitHub. Going forward questions and enhancements will be considered in our forums, https://forums.mbed.com/ . If this issue is still relevant please re-raise it there. This GitHub issue will now be closed.

adbridge commented 4 years ago

Apologies, this was closed in error by the automated bot - re-opening.