beaufortfrancois / sandbox

:baby_chick:
MIT License
72 stars 32 forks source link

MiBand demo not working "GATT Error Unknown" #2

Open jakearchibald opened 8 years ago

jakearchibald commented 8 years ago
screen shot 2016-03-03 at 16 58 57

This happens after pairing

beaufortfrancois commented 8 years ago

@jakearchibald I've just pushed a fix but I don't have my miBand to test this. Can you let me know how it goes for you?

jakearchibald commented 8 years ago

Still getting the same error :(

jakearchibald commented 8 years ago

It fails on characteristic.readValue() for the steps UUID

jakearchibald commented 8 years ago

Hmm, it displays steps if I comment out return miBand.pair(reset) - so looks like the pairing is causing the problems

jakearchibald commented 8 years ago

I got updates working by removing all _startNotifications except for STEPS_UUID. Unfortunately I only got a few characteristicvaluechangeds then it stopped working. I think this is a platform bug, as I'm seeing the same with the heart rate monitor demo, and refreshing the browser doesn't fix it, getting no characteristicvaluechangeds now.

jakearchibald commented 8 years ago

https://bugs.chromium.org/p/chromium/issues/detail?id=594525

beaufortfrancois commented 8 years ago

Thanks @jakearchibald. Will have a look over there.