Closed gbconnet closed 3 years ago
I forgot to write that if you use Serial port as debug, all is OK
I have found the problem.It seems to be the instruction:
#if SMOD == Serial1
SMOD.begin(115200, SERIAL_8N1, RX1_PIN, TX1_PIN);
#else
SMOD.begin(115200, SERIAL_8N1);
#endif
Program fail to valuate "#if SMOD == Serial1", and Serial2 port crash!!!
What type of issues is this?
[x] Bug or issue with library functionality (ie, sending data over TCP/IP) [x] Question or request for help
What are you working with?
Modem: SIM800L R14.18 TinyGSM version: 0.11.3 Code:
Scenario, steps to reproduce
I have a problem using TinyGSM with SIM800L module. If you set Serial2 as debug, in SIM registration if something goes wrong (modem.waitForNetwork() or modem.gprsConnect(...)) Serial2 stop working (but the program continue to work)
Actual result
In the example if you try to modify APN with a wrong one, Serial2 stop working. If APN is right all is OK
Debug and AT command log