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

Post your questions and help other users.

Moderator: Martin

Post Reply
evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

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

Post by evebrea » 02 Dec 2018 23:52

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.


User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

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

Post by Martin » 04 Dec 2018 21:06

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

evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

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

Post by evebrea » 06 Dec 2018 15:21

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 758 times

evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

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

Post by evebrea » 06 Dec 2018 15:22

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.

Post Reply