diff --git a/src/Modem.cpp b/src/Modem.cpp index ff2a8d3..188279a 100644 --- a/src/Modem.cpp +++ b/src/Modem.cpp @@ -127,6 +127,15 @@ void ModemClass::end() } } +void ModemClass::hardReset() +{ + // Hardware pin reset, only use in EMERGENCY + digitalWrite(_resetPin, HIGH); + delay(1000); // Datasheet says nothing, so guess we wait one second + digitalWrite(_resetPin, LOW); + setVIntPin(SARA_VINT_OFF); +} + void ModemClass::debug() { debug(Serial); diff --git a/src/Modem.h b/src/Modem.h index 32b63a1..7978342 100644 --- a/src/Modem.h +++ b/src/Modem.h @@ -58,6 +58,7 @@ class ModemClass { int noop(); int reset(); int shutdown(); + void hardReset(); // Hardware pin reset, only use in EMERGENCY int isPowerOn(); void setVIntPin(int vIntPin);