Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'withServices' option to startScan #10

Open
pbaker5 opened this issue Aug 8, 2019 · 0 comments
Open

Add 'withServices' option to startScan #10

pbaker5 opened this issue Aug 8, 2019 · 0 comments

Comments

@pbaker5
Copy link

pbaker5 commented Aug 8, 2019

When I do a scan, I only want devices with my service Id to be returned. Taking a look at their documentation, it seems like RxBluetoothKit has:
manager.scanForPeripherals(withServices: [serviceId])
and RxAndroidBle has scan filters:

Disposable scanSubscription = rxBleClient.scanBleDevices(
        new ScanSettings.Builder()
            // .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) // change if needed
            // .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) // change if needed
            .build()
        // add filters if needed
)
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

No branches or pull requests

1 participant