Basic

Dependencies:   MQTT

Committer:
lwtroach
Date:
Wed Apr 24 06:13:22 2019 +0000
Branch:
Flash_Exam
Revision:
9:4731ae675a01
Parent:
7:e556528beeba
When programming the data into flash, the size to API of IAP must be the correct size of data itself, or the algorithm will save the next data after it.

Who changed what in which revision?

UserRevisionLine numberNew 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