NordicSemiconductor / Android-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
1.1k stars 464 forks source link

Help Filtering Devices Out for UART #58

Closed Casey10110 closed 5 years ago

Casey10110 commented 6 years ago

Hi Guys,

Love this toolbox. Little issue though.

I have tried a lot to figure out how to filter out all the available devices for the UART activity. It seems very convoluted to me and I am having a difficult time figuring out how these devices even get listed. I've looked at DeviceListAdapter, DeviceAdapter, ScannerFragment. How could I, for example, only list devices that began with "My"?

Is this enough info what I am asking here?

Casey

philips77 commented 5 years ago

Hi @Casey10110, Right now the toolbox's ScannerFragment allows only to filter by service UUID, not by name. You'd have to modify the code here. You may either add a filter here, or manually check the devices in here. Also, nRF Toolbox is quite old by now. It was written in a different age, so may not be up to date with the latest standards. You may check nRF Blinky, which is much simpler, has a filter already implemented (service UUID or RSSI) and is much easier to modify. We use it for our apps if we need to start quickly.

Casey10110 commented 5 years ago

Excellent, thanks!