Basic

Dependencies:   MQTT

LPG_ATCmd_Processing/LPG_ATCmd_Processing.cpp

Committer:
lwtroach
Date:
2019-04-24
Branch:
Flash_Exam
Revision:
9:4731ae675a01
Parent:
7:e556528beeba

File content as of revision 9:4731ae675a01:


#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)
{
    
}