[Follow-up on issue #13] Cannot connect with mac address on Android
Following on https://github.com/mbientlab/MetaWear-SDK-Android/issues/13 :
This is super weird. I just tested it again on a stock S7, same problem :
07-21 09:59:21.482 16284-16297/com.mbientlab.metawear.tutorial.freefalldetector D/BluetoothGatt: onClientConnectionState() - status=133 clientIf=5 device=FF:44:46:AA:21:AF
07-21 09:59:21.487 16284-16297/com.mbientlab.metawear.tutorial.freefalldetector D/BluetoothGatt: refresh() - device: FF:44:46:AA:21:AF
07-21 09:59:21.490 16284-16297/com.mbientlab.metawear.tutorial.freefalldetector D/BluetoothGatt: close()
07-21 09:59:21.491 16284-16297/com.mbientlab.metawear.tutorial.freefalldetector D/BluetoothGatt: unregisterApp() - mClientIf=5
07-21 09:59:21.499 16284-16448/com.mbientlab.metawear.tutorial.freefalldetector E/freefall: Error connecting
java.lang.RuntimeException: Non-zero connection changed status (133)
at com.mbientlab.metawear.android.BtleService$1$2.run(BtleService.java:112)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
Could this be in the _way_ it's compiled ? What can I be overlooking ? Is the sensor somehow broken or in a bad state ?
On a side note, I'm looking for a quick fix so I can continue working on this app with the sensor. Is there a way to make a scan directly in code, like in Swift ?
MBLMetaWearManager.shared().startScan(forMetaWearsAllowDuplicates: false, handler: { array in
for device in array {
print("Found MetaWear: \(device)")
}
})
This discussion has been closed.
Comments