Skip to content

feat(gap): add Device.Connected()#426

Merged
deadprogram merged 2 commits intotinygo-org:devfrom
acouvreur:add-device-connected
Mar 24, 2026
Merged

feat(gap): add Device.Connected()#426
deadprogram merged 2 commits intotinygo-org:devfrom
acouvreur:add-device-connected

Conversation

@acouvreur
Copy link
Copy Markdown
Contributor

It is currently not possible to know wether we are connected or not.

This allow the user to know if the device is connected.

@deadprogram
Copy link
Copy Markdown
Member

The same functions should probably be added for all the gap implementations, such as sd and hci. Even if they are just placeholders in the others.

What do you think?

@acouvreur
Copy link
Copy Markdown
Contributor Author

acouvreur commented Mar 23, 2026

I agree.

In that case for future evolutions, can we define a base interface that every platform implementation must satisfy ?
I think it would improve dev experience overall.

I can submit another PR for that as a draft

@acouvreur
Copy link
Copy Markdown
Contributor Author

Related work #429

It is currently not possible to know wether we are connected or not.

This allow the user to know if the device is connected.
@acouvreur acouvreur force-pushed the add-device-connected branch from f4fcee3 to f37334a Compare March 23, 2026 21:10
@deadprogram
Copy link
Copy Markdown
Member

Thanks for the further improvements on this @acouvreur now squash/merging.

@deadprogram deadprogram merged commit 5372045 into tinygo-org:dev Mar 24, 2026
4 checks passed
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.

2 participants