Skip to content

Conversation

acouvreur
Copy link

@acouvreur acouvreur commented Oct 4, 2025

I've just done these changes for darwin because I am working on MacOS.

I can implement it for windows and linux if this change is accepted.

I can also work in adding context in different apis, such as DiscoverServices, DiscoverCharacteristics and Scan.

I've added the context implementation for DiscoverServicesWithContext DiscoverCharacteristicsWithContext WriteWithContext and ReadWithContext in 434206b

Related #339

a.cm.CancelConnect(prphs[0])

// record an error to use when the disconnect comes through later.
connectionError = ctx.Err()
Copy link
Author

Choose a reason for hiding this comment

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

This only difference is the error retrieval, here. Maybe we can find a "clever" way to not duplicate code.

…hContext WriteWithContext and ReadWithContext

Related tinygo-org#339
@acouvreur acouvreur changed the base branch from release to dev October 12, 2025 21:26
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