Skip to content

extmod/modbluetooth: Persist reference to NimBLE service instances. #5240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 22, 2019

Conversation

jimmo
Copy link
Member

@jimmo jimmo commented Oct 21, 2019

NimBLE doesn't actually copy this data, it requires it to stay live.
Only dereference when we register a new set of services.

Fixes #5226

This will allow incrementally adding services in the future, so
rename reset to append to make it clearer.

Also fix a truncation with chars/descs that have been increased
from the default size.

jimmo added 3 commits October 22, 2019 14:30
NimBLE doesn't actually copy this data, it requires it to stay live.
Only dereference when we register a new set of services.

Fixes micropython#5226

This will allow incrementally adding services in the future, so
rename `reset` to `append` to make it clearer.
This allows the maximum size of a characteristic/descriptor to be
increased by locally writing to it first.
@dpgeorge dpgeorge merged commit 9c5262f into micropython:master Oct 22, 2019
@dpgeorge
Copy link
Member

Great, thank you!

@dpgeorge dpgeorge added the extmod Relates to extmod/ directory in source label Oct 22, 2019
tannewt added a commit to tannewt/circuitpython that referenced this pull request Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extmod Relates to extmod/ directory in source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BLE: crash after running gc.collect()
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy