-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set NB default restart value to false #72
base: master
Are you sure you want to change the base?
Conversation
Memory usage change @ f0682af
Click for full report table
Click for full report CSV
|
if (restart) { | ||
shutdown(); | ||
end(); | ||
delay(1500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two thinks are on my mind here:
- Isn't there a
hardReset
doing pretty much the same what you are doing here? (Add hardReset() #64) - It has come up that the real relay should be rather 10 s than 1.5 (Fix hardReset method to match the datasheet #70)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is a soft reset. The hardReset() method is a final resort if nothing else works. It may brick the modem.
This PR is intended to fix #71.
The modem used to behave properly only when using
nbAccess.begin(PINNUMBER, APN, USERNAME, PASSWORD, false, true)
, which does not restart the modem.By changing in the library the default value of
restart
from true to false, the modem behaves correctly without specifying the last two input parameters:nbAccess.begin(PINNUMBER, APN, USERNAME, PASSWORD)
.