The code has a bug in that it doesn't pass the APN and username / password correctly to the modem.
In the file: "TinyGsmClientSIM7080.h" the following line needs to be changed:
BROKEN ---> sendAT(GF("+CNCFG=0,1,\""), apn, "\",\"", "\",\"", user, pwd, '"');
FIXED ---> sendAT(GF("+CNCFG=0,1,\""), apn, "\",\"", user ,"\"", ",\"", pwd, '"',",2");
Expected result
Username and password is passed correctly to the modem to attach to the mobile network.
Actual result
When testing on APN requiring username and password it will not work.
[x] I have read the Troubleshooting section of the ReadMe
What type of issues is this?
[ ] Request to support a new module
[ ] Bug or problem compiling the library [x] Bug or issue with library functionality (ie, sending data over TCP/IP) [ ] Question or request for help
What are you working with?
Modem: SIMCOM 7070 Main processor board: ESP32 TinyGSM version: 0.11.4 Code: const char apn[] = "xyz.com"; const char gprsUser[] = "xyz"; const char gprsPass[] = "xyz123"; if (!modem.gprsConnect(apn, gprsUser, gprsPass)) { Serial.println(" fail"); delay(10000); return; }
Scenario, steps to reproduce
The code has a bug in that it doesn't pass the APN and username / password correctly to the modem.
In the file: "TinyGsmClientSIM7080.h" the following line needs to be changed: BROKEN ---> sendAT(GF("+CNCFG=0,1,\""), apn, "\",\"", "\",\"", user, pwd, '"'); FIXED ---> sendAT(GF("+CNCFG=0,1,\""), apn, "\",\"", user ,"\"", ",\"", pwd, '"',",2");
Expected result
Username and password is passed correctly to the modem to attach to the mobile network.
Actual result
When testing on APN requiring username and password it will not work.
Debug and AT command log