File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 153
153
#define AIOT_CONFIG_MAX_THING_ID_REQUEST_RETRY_DELAY_ms (32000UL)
154
154
#define AIOT_CONFIG_THING_ID_REQUEST_MAX_RETRY_CNT (10UL)
155
155
156
- #define AIOT_CONFIG_DEVICE_TOPIC_ATTACH_RETRY_DELAY_ms (20000UL)
157
- #define AIOT_CONFIG_MAX_DEVICE_TOPIC_ATTACH_RETRY_DELAY_ms (1280000UL)
156
+ #define AIOT_CONFIG_DEVICE_REGISTERED_RETRY_DELAY_k (10UL)
157
+ #define AIOT_CONFIG_MAX_DEVICE_REGISTERED_RETRY_DELAY_k (4UL)
158
+
158
159
#define AIOT_CONFIG_TIMEOUT_FOR_LASTVALUES_SYNC_ms (30000UL)
159
160
#define AIOT_CONFIG_LASTVALUES_SYNC_MAX_RETRY_CNT (10UL)
160
161
Original file line number Diff line number Diff line change @@ -130,8 +130,10 @@ ArduinoCloudDevice::State ArduinoCloudDevice::handleConnected() {
130
130
* counter, but recompute delay.
131
131
* Wait: 4s -> 80s -> 160s -> 320s -> 640s -> 1280s -> 1280s ...
132
132
*/
133
- _attachAttempt.reconfigure (AIOT_CONFIG_DEVICE_TOPIC_ATTACH_RETRY_DELAY_ms,
134
- AIOT_CONFIG_MAX_DEVICE_TOPIC_ATTACH_RETRY_DELAY_ms);
133
+ _attachAttempt.reconfigure (AIOT_CONFIG_THING_ID_REQUEST_RETRY_DELAY_ms *
134
+ AIOT_CONFIG_DEVICE_REGISTERED_RETRY_DELAY_k,
135
+ AIOT_CONFIG_MAX_THING_ID_REQUEST_RETRY_DELAY_ms *
136
+ AIOT_CONFIG_MAX_DEVICE_REGISTERED_RETRY_DELAY_k);
135
137
}
136
138
return State::SendCapabilities;
137
139
}
You can’t perform that action at this time.
0 commit comments