Skip to content

bleio: handle events sent by newer devices and by Android#1491

Merged
tannewt merged 3 commits into
adafruit:masterfrom
dhalbert:ble-data-length-update
Jan 24, 2019
Merged

bleio: handle events sent by newer devices and by Android#1491
tannewt merged 3 commits into
adafruit:masterfrom
dhalbert:ble-data-length-update

Conversation

@dhalbert
Copy link
Copy Markdown
Collaborator

Newer BLE devices may ask to lengthen the basic BLE packet size. This request was not being handled, and so the connection attempt from a central to CircuitPython Peripheral was hanging. Respond in the correct way to this request.

@jerryneedell This I believe will fix adafruit/Adafruit_CircuitPython_BLE#2. I tested on a 2018 iPad. Didn't test on an Android device, but thanks for testing if you are able to do so.

iPhone 6s and lower did not send this request. iPhone 7 (and probably up) do.

@dhalbert dhalbert requested a review from tannewt January 24, 2019 02:14
@dhalbert
Copy link
Copy Markdown
Collaborator Author

Pushed another commit, which handles the additional event BLE_GATTS_EVT_SYS_ATTR_MISSING, used by Android devices. Tested by @jerryneedell on Android, fixes those too.

@dhalbert dhalbert changed the title support BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST, sent by newer devices bleio: handle events sent by newer devices and by Android Jan 24, 2019
Copy link
Copy Markdown
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fixes!

@tannewt tannewt merged commit e77872f into adafruit:master Jan 24, 2019
@dhalbert dhalbert deleted the ble-data-length-update branch January 25, 2019 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UART ECHO TEST failure

2 participants