Skip to content

Commit

Permalink
Merge pull request #2 from felmue/felmue-fix-sim7028-creg-sms-roaming…
Browse files Browse the repository at this point in the history
…-state-1

Fix AT+CREG check
  • Loading branch information
weekroom authored Aug 22, 2024
2 parents 13378a6 + 4f9924c commit 30ef1d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TinyGsmClientSIM7028.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ enum RegStatus
REG_OK_HOME = 1,
REG_OK_ROAMING = 5,
REG_OK_SMS = 6,
REG_OK_SMS_ROAMING = 7,
REG_UNKNOWN = 4,
};
class TinyGsmSim7028 : public TinyGsmModem<TinyGsmSim7028>,
Expand Down Expand Up @@ -272,7 +273,7 @@ class TinyGsmSim7028 : public TinyGsmModem<TinyGsmSim7028>,
bool isNetworkConnectedImpl()
{
RegStatus s = getRegistrationStatus();
return (s == REG_OK_HOME || s == REG_OK_ROAMING || s == REG_OK_SMS);
return (s == REG_OK_HOME || s == REG_OK_ROAMING || s == REG_OK_SMS || s == REG_OK_SMS_ROAMING);
}

String getLocalIPImpl() {
Expand Down

0 comments on commit 30ef1d3

Please sign in to comment.