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 140
140
141
141
#define AIOT_CONFIG_RECONNECTION_RETRY_DELAY_ms (1000UL)
142
142
#define AIOT_CONFIG_MAX_RECONNECTION_RETRY_DELAY_ms (32000UL)
143
+ #define AIOT_CONFIG_TIMEOUT_FOR_LASTVALUES_SYNC_ms (10000UL)
143
144
144
145
#endif /* ARDUINO_AIOTC_CONFIG_H_ */
Original file line number Diff line number Diff line change 53
53
extern RTC_HandleTypeDef RTCHandle;
54
54
#endif
55
55
56
- /* *****************************************************************************
57
- GLOBAL CONSTANTS
58
- ******************************************************************************/
59
-
60
- static const int TIMEOUT_FOR_LASTVALUES_SYNC = 10000 ;
61
-
62
56
/* *****************************************************************************
63
57
LOCAL MODULE FUNCTIONS
64
58
******************************************************************************/
@@ -423,7 +417,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_RequestLastValues()
423
417
424
418
/* Check whether or not we need to send a new request. */
425
419
unsigned long const now = millis ();
426
- if ((now - _lastSyncRequestTickTime) > TIMEOUT_FOR_LASTVALUES_SYNC )
420
+ if ((now - _lastSyncRequestTickTime) > AIOT_CONFIG_TIMEOUT_FOR_LASTVALUES_SYNC_ms )
427
421
{
428
422
DEBUG_VERBOSE (" ArduinoIoTCloudTCP::%s [%d] last values requested" , __FUNCTION__, now);
429
423
requestLastValue ();
You can’t perform that action at this time.
0 commit comments