RedditPP Mascot

RedditPP

r/tasker • … • u/briconaut

How to connect specific wlan and a specific bluetooth device

I have the following problem: I have a list with wlan SIDs and a second list with bluetooth device ids. I want to traverse each list in the given order and abort as soon as the device from the list can be connected. At the end, the device is connected to the first available wlan and the first available bluetooth device, if they're reachable.

I already have the code for the loop to traverse the lists, but I'm not sure what the best method is to check if the respective object is available and then to connect it. I cannot root the device or get any kind of elevated priviledges.

Any advise how to do this?

— 0