Page 1 of 1

Bluetooth device capabilities

Posted: 03 Sep 2017 04:29
by fagci
Some time ago, I wrote python code for my Nokia 3250 to get near BT devices with their abilities (audio transmission, modem, etc.).

How can I achieve this by Automagic?

I already made a flow, which logs near BT devices, but so far, it logs while scanning process run by hand.

Re: Bluetooth device capabilities

Posted: 03 Sep 2017 06:39
by Desmanto
How do you log the nearby BT devices? Afaik Automagic only supplied more detail variables with Trigger Bluetooth Connected/Disconnected. Which mean we have to connect/disconnect in the process. Not like wifi, where we can just simply scan only. Bluetooth scan only available for BLE devices.

Re: Bluetooth device capabilities

Posted: 03 Sep 2017 21:08
by fagci
Not sure about BLE.
https://developer.android.com/guide/top ... h.html#HDP

I use General broadcast trigger with android.bluetooth.device.action.FOUND action

Re: Bluetooth device capabilities

Posted: 04 Sep 2017 15:51
by Desmanto
I tried that trigger, It can be triggered when I open the bluetooth setting and found devices. I put this at the Intent Extra

Code: Select all

clas = getString("android.bluetooth.device.extra.DEVICE")
But debug dialog give me clas = null. How do you get the value? I tested some and haven't found the variable that can get the value from scan result.

So far I only can trigger the scan process by opening bluetooth setting. Try another method, can't replicate it. Maybe last resort is to open bluetooth setting and tap the search button periodically. But it is so distracting and can't use the phone during the scan.