Using variable value for Bluetooth device

MrDenis

New member
Hi all. I'm pretty sure this can't be done but I figured I'd ask: I have an action block which disconnects a specific BT audio device on demand. However I'd like to be able to disconnect different devices based on different scenarios. Can I pass which BT device I want disconnected through a variable? Ow I can only do multiple blocks, one per device.

Thanks.
 

MacroDroidDev

Administrator
Staff member
I assume you have a relatively small number of device and in this case you could do something like.

Input Variable
device: String

Actions
If (device = "BoseHeadphones")
Disconnect Bose headphones
Else If (device == "speaker")
Disconnect speaker
etc.
 
Top