Hi, the current code will mis-interpret an SMS response for any SMS with the content "OK".
In this case the AT command response will contain "+CMGL: ...\r\nOK\r\n" which will be caught in MODEM::poll() during the readout of the response, and break the interpreter.
The pull request contains special handling of "+CMGL:" responses.
I tried to make the change as small as possible, and with as small runtime overhead as possible. It checks if the response contains an SMS response once, and if not, continues with the old code.
Changed to be more robust. Still minimal code changes, but now the change makes sure that SMS content is ignored altogether. No longer adds a new _atCommandState value.
Hi, the current code will mis-interpret an SMS response for any SMS with the content "OK".
In this case the AT command response will contain "+CMGL: ...\r\nOK\r\n" which will be caught in MODEM::poll() during the readout of the response, and break the interpreter.
The pull request contains special handling of "+CMGL:" responses.
I tried to make the change as small as possible, and with as small runtime overhead as possible. It checks if the response contains an SMS response once, and if not, continues with the old code.