Skip to content

feat: add Adapter retrieve_peripherals method - #448

Merged
qdot merged 1 commit into
deviceplug:devfrom
szymonlesisz:feat/retrieve-peripherals
Aug 30, 2026
Merged

qdot merged 1 commit into
deviceplug:devfrom
szymonlesisz:feat/retrieve-peripherals

Conversation

@szymonlesisz

Copy link
Copy Markdown
Contributor

This is empty prerequisite for:

  • retrieve connected peripherals (by services uuid) Retrieve connected devices #437
  • retrieve known peripherals (by device identifiers) - i will add the implementation for corebluetooth, windows and linux in following pull requests.

List of platforms where the method could be implemented

paired/connected visible retrieve by identifier retrieve by services
macOS NO YES YES
Linux YES YES (default) YES (default)
Windows NO YES YES
Android ? ? ?

im not familiar with droidplug but im sure it is also possible to implement if needed.

@szymonlesisz
szymonlesisz force-pushed the feat/retrieve-peripherals branch from 2f50e06 to 4342771 Compare October 23, 2025 09:48
Comment thread src/bluez/adapter.rs
&self,
options: RetrievePeripheralsOptions,
) -> Result<Vec<Peripheral>> {
Err(Error::NotSupported("Not implemented".to_string()))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

maybe instead of throwing i should return an empty vec ? and only log/warn about missing implementation?

@qwandor
qwandor requested a review from qdot November 7, 2025 15:35
qdot added a commit that referenced this pull request Aug 30, 2026
Complete the retrieval implementation introduced by PR #448, carrying forward reusable mechanics from PR #437 while preserving dev's newer adapter-address and Android infrastructure changes.
@qdot
qdot merged commit d2bd5e0 into deviceplug:dev Aug 30, 2026
5 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