Fix for SARA-R5

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2024-05-22 14:03:00 -04:00
parent c2c64aec9d
commit 587bfd0d6d
2 changed files with 4 additions and 6 deletions

View File

@@ -41,6 +41,7 @@ jobs:
TINY_GSM_MODEM_SIM7070,
TINY_GSM_MODEM_UBLOX,
TINY_GSM_MODEM_SARAR4,
TINY_GSM_MODEM_SARAR5,
TINY_GSM_MODEM_XBEE,
TINY_GSM_MODEM_SEQUANS_MONARCH,
]

View File

@@ -30,8 +30,6 @@
#include "TinyGsmTime.tpp"
#include "TinyGsmBattery.tpp"
#include <string.h>
enum SaraR5RegStatus {
REG_NO_RESULT = -1,
REG_UNREGISTERED = 0,
@@ -312,7 +310,7 @@ class TinyGsmSaraR5 : public TinyGsmModem<TinyGsmSaraR5>,
return true;
}
bool getCurrentRadioAccessTechnology(int& set) {
bool getCurrentRadioAccessTechnology() {
sendAT(GF("+URAT?"));
String response;
if (waitResponse(10000L, response) != 1) { return false; }
@@ -416,9 +414,8 @@ class TinyGsmSaraR5 : public TinyGsmModem<TinyGsmSaraR5>,
"+UPSDA=0,4")); // Deactivate the PDP context associated with profile 0
waitResponse(360000L); // Can return an error if previously not activated
sendAT(
GF("+UPSD=0,100,") +
String(rcid)); // Deactivate the PDP context associated with profile 0
sendAT(GF("+UPSD=0,100,"),
rcid); // Deactivate the PDP context associated with profile 0
waitResponse();
sendAT(GF(