GetASCIIResponseCode search all of the rx buffer for keywords like OK, ERROR etc.
If the data arrives line by line this is ok. If the data arrives all at once then GetASCIIResponseCode will generally find OK and then ignore the preceding data. I note that AT+GMR has special processing to cope with this.
The solution is for GetASCIIResponseCode (and its associated functions) to only search the buffer for one line when matching strings.
GetASCIIResponseCodesearch all of the rx buffer for keywords like OK, ERROR etc.If the data arrives line by line this is ok. If the data arrives all at once then
GetASCIIResponseCodewill generally findOKand then ignore the preceding data. I note thatAT+GMRhas special processing to cope with this.The solution is for
GetASCIIResponseCode(and its associated functions) to only search the buffer for one line when matching strings.