From c84773de3af76832d15806647d8529c2e5b75257 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Fri, 11 Jul 2014 23:41:27 +0200 Subject: 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. --- daemon/watchconnector.h | 1 + 1 file changed, 1 insertion(+) (limited to 'daemon/watchconnector.h') 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 socket; bool is_connected; + QTimer reconnectTimer; QString _last_name; QString _last_address; }; -- cgit v1.2.3