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 @@ -521,15 +521,15 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeThingTopics()
521
521
}
522
522
523
523
unsigned long const now = millis ();
524
- bool const is_subscribe_retry_delay_expired = (now - _last_subscribe_request_tick) > AIOT_CONFIG_SUBSCRIBE_RETRY_DELAY_ms ;
524
+ bool const is_subscribe_retry_delay_expired = (now - _last_subscribe_request_tick) > AIOT_CONFIG_THING_TOPICS_SUBSCRIBE_RETRY_DELAY_ms ;
525
525
bool const is_first_subscribe_request = (_last_subscribe_request_cnt == 0 );
526
526
527
527
if (!is_first_subscribe_request && !is_subscribe_retry_delay_expired)
528
528
{
529
529
return State::SubscribeThingTopics;
530
530
}
531
531
532
- if (_last_subscribe_request_cnt > AIOT_CONFIG_SUBSCRIBE_MAX_RETRY_CNT )
532
+ if (_last_subscribe_request_cnt > AIOT_CONFIG_THING_TOPICS_SUBSCRIBE_MAX_RETRY_CNT )
533
533
{
534
534
_last_subscribe_request_cnt = 0 ;
535
535
_last_subscribe_request_tick = 0 ;
You can’t perform that action at this time.
0 commit comments