Skip to content

Commit

Permalink
GSM: extend number of connection retries to 10, cut down maximum wait…
Browse files Browse the repository at this point in the history
… time to 8s
  • Loading branch information
pennam committed Nov 14, 2024
1 parent 06d7756 commit 1cc6e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/GSM/src/GSM.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ class GSMClass : public MbedSocketClass {
bool _at_debug = false;

/* Internal cellular state machine retries. Values are in seconds.
* This array also defines the maximum number of retries to 6
* This array also defines the maximum number of retries to CELLULAR_RETRY_ARRAY_SIZE
*/
const uint16_t _retry_timeout[6] = {1, 2, 4, 8, 16, 32};
const uint16_t _retry_timeout[CELLULAR_RETRY_ARRAY_SIZE] = {1, 2, 4, 8, 8, 8, 8, 8, 8, 8};

static constexpr int RSSI_UNKNOWN = 99;
static const char * const sim_state_str[];
Expand Down

0 comments on commit 1cc6e3c

Please sign in to comment.