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

Filtering for manufacturerId does not work when scanning #273

Open
elsni opened this issue Jun 22, 2023 · 1 comment
Open

Filtering for manufacturerId does not work when scanning #273

elsni opened this issue Jun 22, 2023 · 1 comment

Comments

@elsni
Copy link

elsni commented Jun 22, 2023

I try filtering device scan for manufactuerId.

this._bluetooth.startScanning({
            filters: [{manufacturerId:1212}],
            seconds: 4,
            skipPermissionCheck: false,
            onDiscovered: function (peripheral) {
              console.log("found device " + peripheral.localName + " mac " + peripheral.UUID + " Man.Id " +peripheral.manufacturerId);
            }
})

but the scan returns all devices.

@farfromrefug
Copy link
Member

@elsni there is no filter by manufacturerId.
On iOS there is only a filter by serviceUUID
On android: serviceUUID, deviceName, deviceAddress, manufacturerData

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

2 participants