Page 1 of 1

Variables not set for Bluetooth Connected condition

Posted: 07 Oct 2016 05:00
by micatlkw
variables connected_devices_addresses and connected_devices_names are not set

Re: Variables not set for Bluetooth Connected condition

Posted: 07 Oct 2016 10:54
by MURTUMA
Please, be more specific. This needs a use case to determine where the problem lies.

When the flow runs through the condition, are there any bluetooth devices connected?

Re: Variables not set for Bluetooth Connected condition

Posted: 07 Oct 2016 19:10
by micatlkw
I am sorry that if I wasn't clear. When the condition runs, there are device connected. I expected the variables are assigned with the condition returns true. However, they are empty.

Re: Variables not set for Bluetooth Connected condition

Posted: 07 Oct 2016 19:40
by Martin
The variables are propagated on my device when a BT device is connected.
Could you please execute a flow like this and check if the variables are really not available?
-...
-condition Bluetooth Device Connected
--> true: -condition Debug Dialog

I would be glad if you could send me a log if the variables are still empty but the condition remains true (turn on debug logging in the preferences of Automagic then execute above flow, go to the flow list and use menu->Manage->Log, menu->Send Log).

Thanks & Regards,
Martin

Re: Variables not set for Bluetooth Connected condition

Posted: 07 Oct 2016 20:11
by Martin
Probably found the problem. The variables are not set when only a specific bluetooth profile is checked. This should be fixed in the next update.
Thanks for reporting!

Regards,
Martin

Re: Variables not set for Bluetooth Connected condition

Posted: 08 Oct 2016 03:09
by micatlkw
More information, in my condition, I set it to check if any bt device (Not specific one) connected to the headset profile. Not sure this match your finding

Re: Variables not set for Bluetooth Connected condition

Posted: 10 Oct 2016 18:36
by Martin
Yes, the problem was caused by the setting to check the headset profile only.

Regards,
Martin

Re: Variables not set for Bluetooth Connected condition

Posted: 11 Oct 2016 04:12
by micatlkw
Thanks!