ATParser for X-NUCLEO-IDW01M1 module

Dependencies:   BufferedSerial

Dependents:   SPWF01SA-lapi-1 SPWF01SA Nucleo-AWS-IoT-mbed

Fork of ATParser by ST Expansion SW Team

Revision:
17:bf5ceea4d6f2
Parent:
16:b9b53df4dc4d
Child:
18:23f4573bcda2
--- a/ATParser.cpp	Mon Jul 04 12:19:04 2016 +0000
+++ b/ATParser.cpp	Thu Jul 07 06:39:34 2016 +0000
@@ -254,7 +254,8 @@
                         if (c < 0) {
                             return false;
                         }
-                        if(c==0xD) {//there is no next number so exit from condition                                
+                        if(c==0xD) {//there is no next number so exit from condition   
+                            c = getc();//get rid of the following '\n' delimiter
                             break;
                         }
                         else {