oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.68k stars 292 forks source link

OpenScale stopped connecting to Mi Scale out of the sudden #977

Closed woj-tek closed 1 year ago

woj-tek commented 1 year ago

Describe the bug Today OpenScale refused to connect to my Mi Scale (it was working fine till yesterday, even with the upgrade version)

To Reproduce Steps to reproduce the behavior:

  1. openOpenScale
  2. step on the scale and wait for measurement and calculation to finish
  3. hit "enable bluetooth" which also connects to the scale (for some reason I have to do it this way, otherwise OpenScale never connected)
  4. bluetooth enables but gives out error connecting.

Reproduced with openScale 2.5.2

Expected behavior Upon enabling bluetooth it should connect

Debug log openScale_2023-08-07_10-53.txt

2023-08-07 10:53:54.201 Debug [2] BluetoothCommunication: Try to connect to BLE device E1:24:3F:25:B6:D6
2023-08-07 10:53:54.311 Info [2] BluetoothPeripheral: connect to 'MIBCS' (E1:24:3F:25:B6:D6) using transport LE
2023-08-07 10:53:54.316 Info [2] BluetoothPeripheral: peripheral 'E1:24:3F:25:B6:D6' is connecting
2023-08-07 10:53:59.328 Info [95] BluetoothPeripheral: connection failed with status 'CONNECTION_FAILED_ESTABLISHMENT'
2023-08-07 10:53:59.342 Info [95] BluetoothCentralManager: connection to 'MIBCS' (E1:24:3F:25:B6:D6) failed
2023-08-07 10:53:59.348 Error [2] BluetoothCommunication: connection 'MIBCS' failed with status 62
woj-tek commented 1 year ago

It works today. I think that restarting the phone solved the issue for some reason.