Wen-ting Lo / Mbed OS STM32F303RE_LPG

Dependencies:   MQTT

LPG_ATCmd_Processing/LPG_ATCmd_Processing.cpp

Committer:
lwtroach
Date:
2019-04-23
Revision:
4:418b6d4097e1
Parent:
2:e90526c0bcbe
Child:
6:86eea1bcf499

File content as of revision 4:418b6d4097e1:


#include "LPG_ATCmd_Processing.h"

Timer TimeOutCounter;

tsATCmds ATCmds[] = 
{
    {(char*)"AT+CFUN=0\r\n",(char*)"OK",2000,e_NO_REC,3},
    {(char*)"AT+CFUN=1\r\n",(char*)"OK",2000,e_NO_REC,3},
    {(char*)"AT+CGATT=1\r\n",(char*)"OK",2000,e_NO_REC,3}
};

void LPG_ATCmd_Processing_WriteCommand(const char* Command, RawSerial TransPort, RawSerial DebugPort)
{
    LPG_ATCmd_Processing_WriteCommand(Command, TransPort);
    DebugPort.puts("UART Sended.\r\n");    
}
void LPG_ATCmd_Processing_WriteCommand(const char* Command, RawSerial TransPort)
{
    TransPort.puts((const char*)Command);
}

void LPG_ATCmd_Processing_Receive(const char* Key)
{
    
}