Android Question How to check if my device is Bluetooth Low Energy capable?

amorosik

Well-Known Member
Licensed User
How to check if your device is usable to communicate with other devices using the Bluetooth Low Energy protocol?
I mean, how to check if my smartphone can communicate with a sensor that is expressly specified to communicate via BLE?
And how to check if my smartphone operate via 'central' or 'peripheral' mode?
Is possible to change the 'role' from central to peripheral and viceversa?
 
Last edited:

JordiCP

Well-Known Member
Licensed User
If your device has Bluetooth and it is not very very old, its Bluetooth version will be 4.x or higher (you can check it in your device specs). BLE was defined in 4.0. --> so my bet is that it will probably have BLE (besides other profiles)

By default, the phone BLE behaves as a Central. By scanning with the OS, you can see the peripherals that advertise themselves. Some standard devices (for instance, keyboards) are directly recognized by the same OS, which can seamlessly integrate them if the user chooses to do it.

Programmatically (with the needed libs for each case), you can make it work as a central, and, if the device allows for it (since API 21+, but not all devices support it, see HERE ) make it work as a peripheral. For both cases you'll need to know which services/characteristics the other device has, in order to communicate with it.

I'd start with the BLE (Central) example and just check if your device can detect the sensor.
 
Upvote 0
Top