Skip to content

Commit db7aeee

Browse files
Add hardReset() (#64)
1 parent 9abcaad commit db7aeee

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Modem.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ void ModemClass::end()
127127
}
128128
}
129129

130+
void ModemClass::hardReset()
131+
{
132+
// Hardware pin reset, only use in EMERGENCY
133+
digitalWrite(_resetPin, HIGH);
134+
delay(1000); // Datasheet says nothing, so guess we wait one second
135+
digitalWrite(_resetPin, LOW);
136+
setVIntPin(SARA_VINT_OFF);
137+
}
138+
130139
void ModemClass::debug()
131140
{
132141
debug(Serial);

src/Modem.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class ModemClass {
5858
int noop();
5959
int reset();
6060
int shutdown();
61+
void hardReset(); // Hardware pin reset, only use in EMERGENCY
6162
int isPowerOn();
6263
void setVIntPin(int vIntPin);
6364

0 commit comments

Comments
 (0)