I have an array with the names of some devices I don't want to get when I do navigator.bluetooth.requestDevice
Is there a way to keep them out the same way you can filter devices by name?
navigator.bluetooth.requestDevice({ filters: [ { namePrefix: "SPDCM", }, ], optionalServices: [UUID_FOTA_SERVICE] })
There is not a way to exclude some devices as of March 2023.
The requestDevice filters (MDN docs & specification examples) only select criteria to include, but not mask, items to be included.
I've started a specification issue requesting exclusion filters. Please review and comment there to make a proposal. Adding as many specifics about your use case (e.g. specific device examples) will help motivate the work.