summaryrefslogtreecommitdiff
path: root/daemon/watchconnector.h
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-07-11 23:41:27 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-07-11 23:41:27 +0200
commitc84773de3af76832d15806647d8529c2e5b75257 (patch)
tree0e49df1db6e2989629a4fadf5d1ba4c48ac516f9 /daemon/watchconnector.h
parent6a8cdaf2f718fef8a826fd98241050a7d3cbfb3d (diff)
Fixed reconnect on disconnection
Reconnection timeut will now raise gradually, to be 1000ms * reconnect attempt. This should help preserve power in the phone, when no Pebble is around. You can speed-up this process by reconnecting manually from manager app or its cover. Also force channel 1 for RFCOMM, as discovery does not work anymore after disconnection.
Diffstat (limited to 'daemon/watchconnector.h')
-rw-r--r--daemon/watchconnector.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/watchconnector.h b/daemon/watchconnector.h
index 4015870..36d0936 100644
--- a/daemon/watchconnector.h
+++ b/daemon/watchconnector.h
@@ -130,6 +130,7 @@ private:
QPointer<QBluetoothSocket> socket;
bool is_connected;
+ QTimer reconnectTimer;
QString _last_name;
QString _last_address;
};