Skip to content

feat: add Adapter retrieve_peripherals method#448

Open
szymonlesisz wants to merge 1 commit into
deviceplug:devfrom
szymonlesisz:feat/retrieve-peripherals
Open

feat: add Adapter retrieve_peripherals method#448
szymonlesisz wants to merge 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant