So,
I replaced the parsing code with this:
void ParseSMS()
{
char c;
memset(SMSBuff, '\0', BUFFSIZE);
nBufPos = 0;
while(cell.available() > 0)
{
c = cell.read();
if(c == '"') // looking out for a "
{
nBufPos = 0;
while(cell.available() > 0 && nBufPos < BUFFSIZE - 3)
{
c = cell.read();
SMSBuff[nBufPos] = c;
nBufPos++;
}
}
}
return;
}
Which returns:
starting serial
Almost there...
Ready to go!
CMFG SET to TEXT
ATBuff:
+SIND: 4
SMSBuff:
REC READ","phonenumber","11/01/08,20:36:09+
printing out everything after the first ", but only up to a certain point, there are 3 more character it's not printing.
I'm guessing this has something to do with a buffer being full, but as of yet I don't know where, why or how to make it not happen.
Phil.