File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 140140
141141#define AIOT_CONFIG_RECONNECTION_RETRY_DELAY_ms (1000UL)
142142#define AIOT_CONFIG_MAX_RECONNECTION_RETRY_DELAY_ms (32000UL)
143+ #define AIOT_CONFIG_TIMEOUT_FOR_LASTVALUES_SYNC_ms (10000UL)
143144
144145#endif /* ARDUINO_AIOTC_CONFIG_H_ */
Original file line number Diff line number Diff line change 5353extern RTC_HandleTypeDef RTCHandle;
5454#endif
5555
56- /* *****************************************************************************
57- GLOBAL CONSTANTS
58- ******************************************************************************/
59-
60- static const int TIMEOUT_FOR_LASTVALUES_SYNC = 10000 ;
61-
6256/* *****************************************************************************
6357 LOCAL MODULE FUNCTIONS
6458 ******************************************************************************/
@@ -423,7 +417,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_RequestLastValues()
423417
424418 /* Check whether or not we need to send a new request. */
425419 unsigned long const now = millis ();
426- if ((now - _lastSyncRequestTickTime) > TIMEOUT_FOR_LASTVALUES_SYNC )
420+ if ((now - _lastSyncRequestTickTime) > AIOT_CONFIG_TIMEOUT_FOR_LASTVALUES_SYNC_ms )
427421 {
428422 DEBUG_VERBOSE (" ArduinoIoTCloudTCP::%s [%d] last values requested" , __FUNCTION__, now);
429423 requestLastValue ();
You can’t perform that action at this time.
0 commit comments