Skip to content

Commit 9417c06

Browse files
committed
put rtc sync only in CONNECTING + avoid multiple sending of getLastValue
1 parent 5352b80 commit 9417c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArduinoIoTCloud.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class ArduinoIoTCloudClass {
6363
static const int MQTT_TRANSMIT_BUFFER_SIZE = 256;
6464
static const int MAX_RETRIES = 5;
6565
static const int RECONNECTION_TIMEOUT = 2000;
66-
static const int MAX_CHECK_LASTVALUES_SYNC = 20;
66+
static const int TIMEOUT_FOR_LASTVALUES_SYNC = 10000;
6767

6868

6969
void onGetTime(unsigned long(*callback)(void));
@@ -148,7 +148,7 @@ class ArduinoIoTCloudClass {
148148
BearSSLClient* _bearSslClient;
149149
MqttClient* _mqttClient;
150150
int _mode,
151-
_check_lastValues_sync;
151+
_lastSyncRequestTickTime;
152152
bool _callGetLastValueCallback;
153153

154154

0 commit comments

Comments
 (0)