Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
LPG_ATCmd_Processing/LPG_ATCmd_Processing.cpp@7:e556528beeba, 2019-04-24 (annotated)
- Committer:
- lwtroach
- Date:
- Wed Apr 24 05:03:00 2019 +0000
- Branch:
- Flash_Exam
- Revision:
- 7:e556528beeba
- Parent:
- 6:86eea1bcf499
Recover to this version, because I don't know why the erase in IAP doesn't work. But it seems fine when I was programming in the morning.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lwtroach | 0:6bdfb6ccd136 | 1 | |
lwtroach | 0:6bdfb6ccd136 | 2 | #include "LPG_ATCmd_Processing.h" |
lwtroach | 0:6bdfb6ccd136 | 3 | |
lwtroach | 0:6bdfb6ccd136 | 4 | Timer TimeOutCounter; |
lwtroach | 0:6bdfb6ccd136 | 5 | |
lwtroach | 0:6bdfb6ccd136 | 6 | tsATCmds ATCmds[] = |
lwtroach | 0:6bdfb6ccd136 | 7 | { |
lwtroach | 0:6bdfb6ccd136 | 8 | {(char*)"AT+CFUN=0\r\n",(char*)"OK",2000,e_NO_REC,3}, |
lwtroach | 0:6bdfb6ccd136 | 9 | {(char*)"AT+CFUN=1\r\n",(char*)"OK",2000,e_NO_REC,3}, |
lwtroach | 7:e556528beeba | 10 | {(char*)"AT+CGATT=1\r\n",(char*)"OK",2000,e_NO_REC,3} |
lwtroach | 0:6bdfb6ccd136 | 11 | }; |
lwtroach | 0:6bdfb6ccd136 | 12 | |
lwtroach | 4:418b6d4097e1 | 13 | void LPG_ATCmd_Processing_WriteCommand(const char* Command, RawSerial TransPort, RawSerial DebugPort) |
lwtroach | 0:6bdfb6ccd136 | 14 | { |
lwtroach | 4:418b6d4097e1 | 15 | LPG_ATCmd_Processing_WriteCommand(Command, TransPort); |
lwtroach | 7:e556528beeba | 16 | DebugPort.puts("UART Sended.\r\n"); |
lwtroach | 0:6bdfb6ccd136 | 17 | } |
lwtroach | 4:418b6d4097e1 | 18 | void LPG_ATCmd_Processing_WriteCommand(const char* Command, RawSerial TransPort) |
lwtroach | 0:6bdfb6ccd136 | 19 | { |
lwtroach | 4:418b6d4097e1 | 20 | TransPort.puts((const char*)Command); |
lwtroach | 0:6bdfb6ccd136 | 21 | } |
lwtroach | 0:6bdfb6ccd136 | 22 | |
lwtroach | 7:e556528beeba | 23 | void LPG_ATCmd_Processing_Receive(const char* Key) |
lwtroach | 0:6bdfb6ccd136 | 24 | { |
lwtroach | 0:6bdfb6ccd136 | 25 | |
lwtroach | 0:6bdfb6ccd136 | 26 | } |
lwtroach | 0:6bdfb6ccd136 | 27 | |
lwtroach | 0:6bdfb6ccd136 | 28 | |
lwtroach | 0:6bdfb6ccd136 | 29 | |
lwtroach | 0:6bdfb6ccd136 | 30 |