abranson / rockpool

Pebble client application for Sailfish OS
41 stars 19 forks source link

Bluetooth doesn't retry after flight mode. #31

Closed abranson closed 8 years ago

abranson commented 8 years ago

Rockpoold needs to be restarted after flight mode before it can reconnect to the watch.

Fuzzillogic commented 8 years ago

Today my watch didn't reconnect, even after more than half an hour after disabling flight mode. Dis- and reenabling bluetooth on the phone caused it to reconnect within seconds, so the service was still running. I wonder if QTimer is the best solution for the reconnect timer. What happens when the phone goes into power save mode? Is QTimer still functional? An alternative may be to use libiphb, as is used in kitchen timer.

abranson commented 8 years ago

I remember reading about that problem somewhere. I've tried simplifying the bluetooth connection a bit in a recent commit (2e069fbfbb9a5d0a190ec4837ddae01d0926cce6), but if that doesn't help then I think a change of timer might be the next thing to try. Maybe we need to make it simpler to restart the service in the meantime.

Edit: this commit is in the new 0.10-1 release