Harry Keane
/
SIM800L_REV1
AT cfommand
Revision 0:428ce6fd8969, committed 2020-02-20
- Comitter:
- HarryKeane
- Date:
- Thu Feb 20 12:50:49 2020 +0000
- Commit message:
- Crappy rev 1 ;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 428ce6fd8969 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 20 12:50:49 2020 +0000 @@ -0,0 +1,37 @@ +#include "mbed.h" + + +Serial PC(USBTX, USBRX); //This is solelly for PC comms +Serial GSM(PD_5, PD_6); //This is solelly for PC comms + + + +int main(){ + + PC.baud(115200); + GSM.baud(9600); + + wait_ms(500); + + PC.printf("Test"); + + + + + GSM.printf("AT"); + + wait_ms(500); + + printf("start read\n\r"); + + while(1) { + + if(GSM.readable()>0) { + printf("start\r\n"); + PC.printf("%c",GSM.getc()); + printf("\r\nStop\r\n"); + } + + + } +}
diff -r 000000000000 -r 428ce6fd8969 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Thu Feb 20 12:50:49 2020 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#c9e63f14085f5751ff5ead79a7c0382d50a813a2