Skip to content

Fix slow espressif BLE discovery#11050

Draft
dhalbert wants to merge 1 commit into
adafruit:mainfrom
dhalbert:dhalbert/fix-espressif-ble-discovery
Draft

Fix slow espressif BLE discovery#11050
dhalbert wants to merge 1 commit into
adafruit:mainfrom
dhalbert:dhalbert/fix-espressif-ble-discovery

Conversation

@dhalbert

Copy link
Copy Markdown
Collaborator

Summary

  • avoid writing to remote characteristics while constructing discovered remote characteristics
  • make discovery timeouts apply per discovery step
  • stop descriptor discovery at the next characteristic definition handle

Testing

  • make BOARD=adafruit_metro_esp32s3 DEBUG=1 CIRCUITPY_ULAB=0 OPTIMIZATION_FLAGS=-Os clean && make BOARD=adafruit_metro_esp32s3 DEBUG=1 CIRCUITPY_ULAB=0 OPTIMIZATION_FLAGS=-Os
  • verified discovery works against a LEGO WeDo 2.0 device with original NimBLE settings

Avoid writing to remote characteristics during discovery, and make descriptor discovery use per-step timeouts and the correct end handle.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant