kuba2k2 / firefox-webserial

WebSerial API Polyfill for Mozilla Firefox browser
https://addons.mozilla.org/en-US/firefox/addon/webserial-for-firefox/
MIT License
88 stars 9 forks source link

Filter options do not work when searching for ports. #13

Open applekss opened 3 weeks ago

applekss commented 3 weeks ago

hello. First of all, due to personal circumstances, I need to use the web serial API in a firefox environment. Thank you for providing such a beautiful program!

However, I have a question regarding filter options.

I am using the filter option like this in my code, but in the latest Linux release, this filter option does not work and all ports are searched.

< my code in Chrome web serial api > port = await navigator.serial.requestPort({ filters: [{ usbVendorId: myVendorId }] }); gitquestion

kuba2k2 commented 3 weeks ago

This is not implemented yet. There is an incoming PR (#4), but the author didn't follow up with the review.

applekss commented 2 weeks ago

Thank you for your reply. By any chance, can I customize this and use it? Of course it will take a long time...