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.
Bluetooth device capabilities
Moderator: Martin
Bluetooth device capabilities
All systems nominal.
Re: Bluetooth device capabilities
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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Bluetooth device capabilities
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
https://developer.android.com/guide/top ... h.html#HDP
I use General broadcast trigger with android.bluetooth.device.action.FOUND action
All systems nominal.
Re: Bluetooth device capabilities
I tried that trigger, It can be triggered when I open the bluetooth setting and found devices. I put this at the Intent Extra
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.
Code: Select all
clas = getString("android.bluetooth.device.extra.DEVICE")
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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.