nativescript-community / nativescript-community/ble
Filtering for manufacturerId does not work when scanning
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 202
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the startScanning entry point and trace how the filters option, specifically manufacturerId, is passed into the platform scan. Reproduce the provided scan and verify that only peripherals matching manufacturerId 1212 are returned; done means nonmatching devices are excluded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100