unsigned char CNMI_cmd[]={"AT+CNMI=1,1,2\r\n"}; //设置收到短消息提示
uartPutStr(ATE_cmd); //发送简化显示要求信号
while(!isOK)
{
if(ReceiveBuffer[count-1]=='\n' &&
ReceiveBuffer[count-2]=='\r' &&
ReceiveBuffer[count-3]=='K' &&
ReceiveBuffer[count-4]=='O' )
{
isOK=1;
count=0;
memset(ReceiveBuffer,'\0',512);
}
}
isOK=0;
上面哪些是我AT+CNMI=1,1,2这个命令的代码,貌似没什么错把~。。 |