Open ov1d1u opened 2 years ago
Could you try testing using SSI BT Classic mode instead of BLE ?
It works with SSI over Bluetooth classic, but this is not an acceptable solution since we're working with users that are not tech savvy so we can't ask them to get and fill a BT address somewhere in our app.
From your code I see that you're doing this:
if (this.mBluetoothManager.getConnectedDevices(7).size() > 0) {
connectedDevice = (BluetoothDevice)this.mBluetoothManager.getConnectedDevices(7).get(0);
DebugConfig.logAsMessage(DEBUG_TYPE.TYPE_DEBUG, "BluetoothLEManager", "ScanCallback: onScanResult Device already connected " + connectedDevice.getName());
}
It seems that the issue lies in this.mBluetoothManager.getConnectedDevices(7).get(0)
, is there any guarantee that this will return our Zebra scanner if there are multiple BLE devices connected to the phone?
I have an Amazfit Verge Lite watch which is always connected to my phone and because of it I can't connect with the scanner. Seems that this happens because of this line in BluetoothLEManager:
where
getConnectedDevices(7)
is returning a list containing my watch which means that it satisfy the condition.This also happens with the SDK demo app.