aashari / mi-band-2

This is an example android application to manipulating data from/to Xiaomi Band 2
MIT License
106 stars 45 forks source link

Connect and pair #4

Closed abelduran1 closed 4 years ago

abelduran1 commented 6 years ago

Hi, your project is awsome but if I close the Mifit app yout app not function. ¿How can I connect and pair with Mi Band 2 programamtically? Without use the Mifit officical app. Thanks in advance.

cuiti commented 6 years ago

I've been working on this for a few days now, for listening to the heart rate monitor in my app. Xiaomi has made it really difficult to use this wearable from third party apps. Even if you manage to detect the Bluetooth device, when you try to listen to a characteristic, it returns a GATT_WRITE_NOT_PERMIT 0x03 error. The only way to make it work is that the client device is paired, has the official app installed, and has the "discoverable" option enabled.

abelduran1 commented 6 years ago

Thanks for your response, but I think that is posible to connect without the official app installed, because this third party app do that: https://github.com/Freeyourgadget/Gadgetbridge

The next websites are very interesting:

aashari commented 4 years ago

Hi all, thanks for creating the issue and replying the issue, but unfortunately I'm not maintaining this repository anymore, so sorry about this, I hope you find the answer by yourself