Demo entry 6362149

ZY

   

Submitted by Zhao Yi on May 07, 2017 at 09:04
Language: C. Code size: 243 Bytes.

void Send_Text1_Sms(void)
{
	unsigned char temp[50]="AT+CMGS=";
	
	strcat(temp,phone); //字符串拼接函数(库函数)
	Second_AT_Command(temp,">",3); //等待接收到“>”才发送短信内容
	UART2_SendString(content1);     //发送短信内容
	UART2_SendData(0X1A);          //发送结束符
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).