I've observed some (possibly) strange behavior in android with respect to reliably connecting to Metawear devices.
I setup the connection target like this (I know the Metawear's MAC ahead of time):
final BluetoothDevice remoteDevice_base =
mwBoard_base = serviceBinder.getMetaWearBoard(remoteDevice_base);
The behavior I observe is that if I don't first do an explicit Bluetooth scan before trying to connect, the connection will always fail. This could be using something like:
...or it could be performed by disabling and re-enabling Bluetooth so the OS performs a scan.
If you know the address of the device you would like to connect to, is there a preferred efficient method to connect to the target Metawear without performing an explicit scan? I'd like to make this process as efficient as possible if I have a cached set of addresses I want to connect to.