Skip to content

Commit 80ce5d8

Browse files
committed
chore: Address PR feedback
1 parent 1d2034b commit 80ce5d8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/AIoTC_Config.h

+4
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@
127127
* CONSTANTS
128128
******************************************************************************/
129129

130+
#if defined(HAS_LORA)
131+
#define AIOT_CONFIG_RECONNECTION_RETRY_DELAY_ms (10000UL)
132+
#else
130133
#define AIOT_CONFIG_RECONNECTION_RETRY_DELAY_ms (1000UL)
134+
#endif
131135
#define AIOT_CONFIG_MAX_RECONNECTION_RETRY_DELAY_ms (32000UL)
132136
#define AIOT_CONFIG_DEVICE_TOPIC_SUBSCRIBE_RETRY_DELAY_ms (5*1000UL)
133137
#define AIOT_CONFIG_MAX_DEVICE_TOPIC_SUBSCRIBE_RETRY_DELAY_ms (32000UL)

src/ArduinoIoTCloudLPWAN.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ArduinoIoTCloudLPWAN::ArduinoIoTCloudLPWAN()
5050
: _state{State::ConnectPhy}
5151
, _retryEnable{false}
5252
, _maxNumRetry{5}
53-
, _intervalRetry{10000}
53+
, _intervalRetry{AIOT_CONFIG_RECONNECTION_RETRY_DELAY_ms}
5454
{
5555

5656
}

0 commit comments

Comments
 (0)