Cannot establish connection between phone and sensor
I'm working on a LG Optimal Fuel with android 4.4.
I followed the instructions in SDK documents to set up the connections between the phone and the sensors.
And I tried to implement an 'automatic reconnect mechanism' so I added board.connect() in disconnect() and failure() MetaWearBoard.ConnectionStateHandler.
However the connection failed and reconnections also failed.
I checked the logcat and found that Bluetooth Gatt has these logs (for one sensor) iteratively (since I do reconnect after a fail connection attempt):
D/BluetoothGatt﹕ connect() - device: D7:06:C0:09:F7:7F, auto: false
D/BluetoothGatt﹕ registerApp() - UUID=2d4dd509-7a44-46cf-bcb3-7a1cb677a370
D/BluetoothGatt﹕ onClientRegistered() - status=0 clientIf=5
D/BluetoothGatt﹕ onClientConnectionState() - status=133 clientIf=5 device=D7:06:C0:09:F7:7F
D/BluetoothGatt﹕ refresh() - device: D7:06:C0:09:F7:7F
D/BluetoothGatt﹕ unregisterApp() - mClientIf=5
Can any one figure out what happened to my connection attempt?
This discussion has been closed.