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@2:e90526c0bcbe, 2019-04-23 (annotated)
- Committer:
- lwtroach
- Date:
- Tue Apr 23 03:42:26 2019 +0000
- Revision:
- 2:e90526c0bcbe
- Parent:
- 0:6bdfb6ccd136
- Child:
- 4:418b6d4097e1
Flash readable
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 | 0:6bdfb6ccd136 | 10 | {(char*)"AT+CGATT=1\r\n",(char*)"OK",2000,e_NO_REC,3} |
lwtroach | 0:6bdfb6ccd136 | 11 | }; |
lwtroach | 0:6bdfb6ccd136 | 12 | |
lwtroach | 0:6bdfb6ccd136 | 13 | void LPG_ATCmd_Processing_WriteCommand(const char* command, RawSerial TransPort, RawSerial DebugPort) |
lwtroach | 0:6bdfb6ccd136 | 14 | { |
lwtroach | 0:6bdfb6ccd136 | 15 | LPG_ATCmd_Processing_WriteCommand(command,TransPort); |
lwtroach | 0:6bdfb6ccd136 | 16 | DebugPort.puts("UART Sended.\r\n"); |
lwtroach | 0:6bdfb6ccd136 | 17 | } |
lwtroach | 0:6bdfb6ccd136 | 18 | void LPG_ATCmd_Processing_WriteCommand(const char* command, RawSerial TransPort) |
lwtroach | 0:6bdfb6ccd136 | 19 | { |
lwtroach | 0:6bdfb6ccd136 | 20 | TransPort.puts((const char*)command); |
lwtroach | 0:6bdfb6ccd136 | 21 | } |
lwtroach | 0:6bdfb6ccd136 | 22 | |
lwtroach | 0:6bdfb6ccd136 | 23 | void LPG_ATCmd_Processing_Receive() |
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 |