Skip to content

Retrieving Peripheral for Connected Device #1086

@Maartens-Mathew

Description

@Maartens-Mathew

So I've looked at the documentation, but I could've skipped over some important details.

I have a BLE peripheral device that is already connected to my android device. I have the mac address and it's name.

Now when I use the scanner and I want to scan for the device with these details, then it doesn't pick it up (naturally), because the device is already connected and bonded. Is there a way for me to retrieve a reference to this device, and still use it with this library for things like observing characteristics?

So something along the lines of this:

val address = "2A:B3:..."
val peripheral = Peripheral(address)
peripheral.connect()
peripheral.observe(...)

For the time being, I'm more focused on getting it to work for Android platform. I can afford to wait for other platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions