arduino-libraries / MKRGSM

GNU Lesser General Public License v2.1
55 stars 51 forks source link

[DO NOT MERGE] Add timeout for modem echoing AT command #52

Closed sandeepmistry closed 6 years ago

sandeepmistry commented 6 years ago

As discussed in https://github.com/arduino-libraries/MKRGSM/pull/50#issuecomment-425447301.

Note: this changes the logic not to wait for the \r\n, since the modem doesn't echo that until the response is ready as observed by the AT+UPSDA=0,3 command. Instead now we wait to an AT prefix + the command length bytes.