File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 144
144
#define AIOT_CONFIG_MAX_RECONNECTION_RETRY_DELAY_ms (32000UL)
145
145
#define AIOT_CONFIG_DEVICE_TOPIC_SUBSCRIBE_RETRY_DELAY_ms (5*1000UL)
146
146
#define AIOT_CONFIG_MAX_DEVICE_TOPIC_SUBSCRIBE_RETRY_DELAY_ms (32000UL)
147
- #define AIOT_CONFIG_SUBSCRIBE_RETRY_DELAY_ms (1000UL)
148
- #define AIOT_CONFIG_SUBSCRIBE_MAX_RETRY_CNT (10UL)
147
+ #define AIOT_CONFIG_THING_TOPICS_SUBSCRIBE_RETRY_DELAY_ms (1000UL)
148
+ #define AIOT_CONFIG_THING_TOPICS_SUBSCRIBE_MAX_RETRY_CNT (10UL)
149
149
#define AIOT_CONFIG_MAX_DEVICE_TOPIC_ATTACH_RETRY_DELAY_ms (1280000UL)
150
150
#define AIOT_CONFIG_TIMEOUT_FOR_LASTVALUES_SYNC_ms (30000UL)
151
151
#define AIOT_CONFIG_LASTVALUES_SYNC_MAX_RETRY_CNT (10UL)
Original file line number Diff line number Diff line change @@ -528,15 +528,15 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeThingTopics()
528
528
}
529
529
530
530
unsigned long const now = millis ();
531
- bool const is_subscribe_retry_delay_expired = (now - _last_subscribe_request_tick) > AIOT_CONFIG_SUBSCRIBE_RETRY_DELAY_ms ;
531
+ bool const is_subscribe_retry_delay_expired = (now - _last_subscribe_request_tick) > AIOT_CONFIG_THING_TOPICS_SUBSCRIBE_RETRY_DELAY_ms ;
532
532
bool const is_first_subscribe_request = (_last_subscribe_request_cnt == 0 );
533
533
534
534
if (!is_first_subscribe_request && !is_subscribe_retry_delay_expired)
535
535
{
536
536
return State::SubscribeThingTopics;
537
537
}
538
538
539
- if (_last_subscribe_request_cnt > AIOT_CONFIG_SUBSCRIBE_MAX_RETRY_CNT )
539
+ if (_last_subscribe_request_cnt > AIOT_CONFIG_THING_TOPICS_SUBSCRIBE_MAX_RETRY_CNT )
540
540
{
541
541
_last_subscribe_request_cnt = 0 ;
542
542
_last_subscribe_request_tick = 0 ;
You can’t perform that action at this time.
0 commit comments