pynus
pynus copied to clipboard
Question - does pynus scan the bluetooth cache, rather than scan for live, discoverable, BLE devices?
Therefore, if the host has more than one Nordic chip in its bluetooth cache, it's pot luck which device it tries to connect to (since it automatically connects to the first NUS console it can find)?
I don't think BlueZ allows for scanning non-cached devices unless you manually clear the cache (which impacts other applications). The only way to find out a device is still reachable is by watching changes in RSSI (which don't always happen).
It's been a while ago but I believe pynus looks at the cache and will even try to connect to devices that are not in reach.