Communicate to bluetooth devices or wifi per at-commands
Revision 7:0ee37a450b12, committed 2019-04-05
- Comitter:
- rainerraul
- Date:
- Fri Apr 05 18:55:24 2019 +0000
- Parent:
- 6:194ceedbb7c3
- Commit message:
- change
Changed in this revision
at.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 194ceedbb7c3 -r 0ee37a450b12 at.cpp --- a/at.cpp Mon Aug 27 08:30:46 2018 +0000 +++ b/at.cpp Fri Apr 05 18:55:24 2019 +0000 @@ -23,7 +23,7 @@ at0.sign = atserial0.getc(); - if((pc.sign != '\r') && (pc.sign != '\n')) { //with no linefeed and carriage return, string is written in buffer + if((at0.sign != '\r') && (at0.sign != '\n')) { //with no linefeed and carriage return, string is written in buffer at0.buffer[at0.a] = at0.sign; at0.a ++; } else { //if cr and lf were received , the content of buffer is send to atcommand device @@ -40,7 +40,7 @@ at1.sign = atserial1.getc(); - if((pc.sign != '\r') && (pc.sign != '\n')) { //with no linefeed and carriage return, string is written in buffer + if((at1.sign != '\r') && (at1.sign != '\n')) { //with no linefeed and carriage return, string is written in buffer at1.buffer[at1.a] = at1.sign; at1.a ++; } else { //if cr and lf were received, the content of buffer is send to atcommand device