Skip to content

Commit

Permalink
LoggerBase: increase connection timeout when publishing
Browse files Browse the repository at this point in the history
Towers seem to take longer to connect the less recently a connection has
been estasblished. Now that that's been expanded from 15 minutes to 8
hours, increase the timeout for that action to 4 minutes from 50 seconds.
  • Loading branch information
tpwrules committed Sep 20, 2023
1 parent bbe5dce commit bea5837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoggerBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ void Logger::logDataAndPublish(void) {
// Connect to the network
watchDogTimer.resetWatchDog();
MS_DBG(F("Connecting to the Internet..."));
if (_logModem->connectInternet()) {
if (_logModem->connectInternet(240000L)) {
// Publish data to remotes
watchDogTimer.resetWatchDog();
publishDataToRemotes(forceFlush);
Expand Down

0 comments on commit bea5837

Please sign in to comment.