14

I want to run a task every time my phone loses connection to my truck's bluetooth device.

I can see a way to run a task when it connects, and obviously I can "invert" it, but inverting it doesn't sound right to me.

What is the right way to run a task upon BT connection loss to a specific device?

3
  • That's obviously the only choice you've got. I'd introduce a variable to it: BT Connected -> %MYVAR = 1. Then combine: !BT-Connected & Isset %MYVAR => just lost connection; unset %MYVAR. !BT-Connected & !Isse %MYVAR would be "lost it a while before". Just to give you a pattern to play with :)
    – Izzy
    Commented Jan 17, 2013 at 23:05
  • I was looking for "Exit Tasks" Commented Jan 18, 2013 at 3:28
  • Yuck sure -- why didn't I think about those!?! I even use them myself...
    – Izzy
    Commented Jan 18, 2013 at 7:00

1 Answer 1

13

Create a profile that is active when connected to the Bluetooth device and set up an exit task to run whatever you want when the profile becomes inactive due to the device disconnects.

3
  • Ah, I see where that is now. You can create an "Exit Task" from the profiles screen... I didn't see how to do that before. Thanks Commented Jan 18, 2013 at 3:03
  • So when I connect to that specific Bluetooth device, I clear my %PARKINGLOCATION variable, and when the profile EXITS, then I set the %PARKINGLOCATION to %LOC, which sets the lat/long of the current location. Commented Jan 18, 2013 at 3:05
  • Here's what it will look like in your tasker profile when set up properly: goo.gl/cAMY4T (i added this to the answer) Commented Feb 18, 2016 at 17:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .