espruino / EspruinoWebIDE

The Espruino Web IDE - A Chrome Web App for programming Espruino
Apache License 2.0
367 stars 158 forks source link

How to filter devices when connection via WebIDE #262

Closed MaBecker closed 2 years ago

MaBecker commented 2 years ago

In some cases there are more then 10 devices around and it is hard to find the wanted one - so a ble device filter would be very helpful.

Bildschirmfoto 2021-12-02 um 17 51 12

gfwilliams commented 2 years ago

Well, there is a filter already based on the Nordic UART service - but I guess those are all your devices that are running Espruino.

That window is created by the Web Browser, so there's not much I can do there....

MaBecker commented 2 years ago

Ok, that’s what I thought, so let’s switch to the command line Version to update devices.

gfwilliams commented 2 years ago

In the serial_webbluetooth.js file you can where filters are applied to requestDevice - so you can remove the service check and then just filter based on name. I'm not sure it's something that makes sense to put into the main IDE though