Page 1 of 1

Connect/disconnect Bluetooth device -issue that's not actual

Posted: 02 Dec 2018 23:52
by evebrea
I'm running Android 6.1 and the function for connect/disconnect Bluetooth device States it may not work.

I can confirm it DOES connect my Walmart smartwatch (hype brand) and yet it throws out an error every time stating that it didn't.

It DID. No issue, however automagic keeps saying the function failed.

Re: Connect/disconnect Bluetooth device -issue that's not ac

Posted: 03 Dec 2018 18:20
by evebrea

Re: Connect/disconnect Bluetooth device -issue that's not ac

Posted: 04 Dec 2018 21:06
by Martin
Hi,

Then the Bluetooth API of Android told Automagic that the connection failed. Maybe the connection attempt was enough to trigger a process in Android to still create a connection somehow in some other way.
It's not beautiful but in this case I would probably just ignore the error by adding an empty action after the connect-action and change the connection in between the two actions to type 'Exception' so Automagic will not show the error message. You could also add a sleep action to the flow, check if the watch connected properly after a short delay and only show an error when the watch did not connect.

Regards,
Martin

Re: Connect/disconnect Bluetooth device -issue that's not ac

Posted: 06 Dec 2018 15:21
by evebrea
Well no. I mean automagic is throwing a full error, one of those errors that come with a triangle and ! as a notification. Let me see if i can screencap it

if i open the action and hit execute, no issues. watch connects and everything is good.


[Watch reconnect] Action 'Connect/Disconnect Bluetooth Device: Connect Headset smartwatch' Could not connect the bluetooth device
06.12.2018 10:08:24.262 [Watch reconnect] End executing action 'Connect/Disconnect Bluetooth Device: Connect Headset smartwatch' and exception Could not connect the bluetooth device
06.12.2018 10:08:24.283 [Watch reconnect] Flow ends execution due to errors
06.12.2018 10:08:24.284 [Watch reconnect]



Image

uploading flow as attachment
flow_Watch_reconnect_20181206_101020.xml
(8.8 KiB) Downloaded 757 times

Re: Connect/disconnect Bluetooth device -issue that's not ac

Posted: 06 Dec 2018 15:22
by evebrea
You'll see in the flow 16wm and 18wm those are my walmart bluetooth speakers. it's just meant to go "are either of these connected? no, then let's try to reconnect the watch"



OH i see now. instead of a normal link to the next item in the flow after the bluetooth connect/disconnect i long tapped and changed it to exception... it didn't throw the error that time.