You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suddenly my code stopped working and I found out some changes on TinyGSM library which works different now.
This part does NOT work anymore:
/*
2 Automatic
13 GSM only
38 LTE only
51 GSM and LTE only
* * * */
String res;
do {
res = modem.setNetworkMode(38);
delay(500);
} while (res != "OK");
/*
1 CAT-M
2 NB-Iot
3 CAT-M and NB-IoT
* * */
do {
res = modem.setPreferredMode(1);
delay(500);
} while (res != "OK");
Now you have to do:
/*
2 Automatic
13 GSM only
38 LTE only
51 GSM and LTE only
* * * */
bool res;
do {
res = modem.setNetworkMode(2);
delay(500);
} while (!res);
/*
1 CAT-M
2 NB-Iot
3 CAT-M and NB-IoT
* * */
do {
res = modem.setPreferredMode(3);
delay(500);
} while (!res);
The text was updated successfully, but these errors were encountered:
Suddenly my code stopped working and I found out some changes on TinyGSM library which works different now.
This part does NOT work anymore:
Now you have to do:
The text was updated successfully, but these errors were encountered: