Skip to content

Commit 24d8607

Browse files
committed
chore: increase LoRa retry interval
1 parent 0e8a54a commit 24d8607

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ArduinoIoTCloudLPWAN.cpp

+2-3
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{1000}
53+
, _intervalRetry{10000}
5454
{
5555

5656
}
@@ -105,8 +105,7 @@ ArduinoIoTCloudLPWAN::State ArduinoIoTCloudLPWAN::handle_ConnectPhy()
105105

106106
ArduinoIoTCloudLPWAN::State ArduinoIoTCloudLPWAN::handle_SyncTime()
107107
{
108-
unsigned long const internal_posix_time = _time_service.getTime();
109-
DEBUG_VERBOSE("ArduinoIoTCloudLPWAN::%s internal clock configured to posix timestamp %d", __FUNCTION__, internal_posix_time);
108+
DEBUG_VERBOSE("ArduinoIoTCloudLPWAN::%s internal clock configured to posix timestamp %lu", __FUNCTION__, _time_service.getTime());
110109
DEBUG_INFO("Connected to Arduino IoT Cloud");
111110
return State::Connected;
112111
}

0 commit comments

Comments
 (0)