I am trying to receive SMS messages from my cell module. I can get most of the returned text but not all of it. I even increased the size _NewSS_MAX_RX_BUFF to 512 and I was able to get even more but cuts off at 256. I am not clear on how to use the flush or overflow methods.
Can someone point in the right direction on how I can grab all this data?
This is the receive function right now... not the best but it helps me see what I am getting:
void ATGetResp(int flag) {
char c;
memset(szATBuff, BUFFSIZE, '\0');
nBufPos = 0; // start at begninning
int nCnt = 0;
while (nCnt < (BUFFSIZE -1)) {
c = cell.read();
szATBuff[nBufPos] = c;
nBufPos++;
nCnt++;
}
}
here is a typical response:
+CMGL: 1,0,"REC READ","907","10/09/19,13:55:04+00"
Welcome! Your FlexAccount balance is 5 dollars. To pay, refill or check balances, go to my.t-mobile.com or visit t-zones. Your mobile number is 7709065801
+CMGL: 2,0,"REC READ","+17703173606","10/09/19,
TEST: CMGL
+CMGL: 1,0,"REC READ","907","10/09/19,13:55:04+00"
Welcome! Your FlexAccount balance is 5 dollars. To pay, refill or check balances, go to my.t-mobile.com or visit t-zones. Your mobile number is 7709065801
+CMGL: 2,0,"REC READ","+17703173606","10/09/19,
TEST: CMGL
you see that I can only read up to /19 on the second text, how to I make it so NSS will clear the buffer and read the rest of the response from the cell module.
I guess what I am trying to figure out is how to tell the NSS to clear the buffer and read the next bit of data?