I am working on a project to set up beacons. After a certain time after turning on the power, the beacon becomes non-configurable until it turns on. To show a list of custom beacons, I’m looking at some features (Bluetooth device name, specific manufacturer’s data in the proposal). I also need to know if it is "pluggable", i.e. e. if the PDU type in the BLE proposal for the device indicates that it is connecting. I was looking for high and low level Android Bluetooth classes, both in Android 4.X and 5.X, and could not find anything that would tell me this information.
I understand that one of the ways to determine whether a beacon can be connected is by connecting to it, for example. g .: device.connectGatt(...) . However, I saw that it takes more than two minutes before the onConnectionStateChange returns with STATE_DISCONNECTED . In addition, there may be many of these beacons in the environment, and connecting to each that can be configured will be ineffective.
The ionic equivalent of this attribute can be found in the advertisementData dictionary under the key CBAdvertisementDataIsConnectable in the CBCentralManagerDelegate centralManager:didDiscoverPeripheral:advertisementData:RSSI callback method.
So, the question is, is there a way on Android to determine if a BLE device is “connected” to advertising data or scan results, or ...?
android bluetooth-lowenergy
mharper
source share