Skip to content

Commit

Permalink
chore: Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
zfields committed Feb 27, 2024
1 parent 1d2034b commit 80ce5d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/AIoTC_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@
* CONSTANTS
******************************************************************************/

#if defined(HAS_LORA)
#define AIOT_CONFIG_RECONNECTION_RETRY_DELAY_ms (10000UL)
#else
#define AIOT_CONFIG_RECONNECTION_RETRY_DELAY_ms (1000UL)
#endif
#define AIOT_CONFIG_MAX_RECONNECTION_RETRY_DELAY_ms (32000UL)
#define AIOT_CONFIG_DEVICE_TOPIC_SUBSCRIBE_RETRY_DELAY_ms (5*1000UL)
#define AIOT_CONFIG_MAX_DEVICE_TOPIC_SUBSCRIBE_RETRY_DELAY_ms (32000UL)
Expand Down
2 changes: 1 addition & 1 deletion src/ArduinoIoTCloudLPWAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ArduinoIoTCloudLPWAN::ArduinoIoTCloudLPWAN()
: _state{State::ConnectPhy}
, _retryEnable{false}
, _maxNumRetry{5}
, _intervalRetry{10000}
, _intervalRetry{AIOT_CONFIG_RECONNECTION_RETRY_DELAY_ms}
{

}
Expand Down

0 comments on commit 80ce5d8

Please sign in to comment.