标题:
STC89C52单片机能不能通过串口传输出一个字符串?
[打印本页]
作者:
lydsgy527
时间:
2022-1-14 21:49
标题:
STC89C52单片机能不能通过串口传输出一个字符串?
最近在利用ESP8266-01S连接STC89C52 能不能让单片机上电的时候直接AT+CIPMUX=1和AT+CIPSERVER=1,8080的AT指令通过一个字符串传给ESP8266啊= =
作者:
小黑屋525
时间:
2022-1-15 12:30
/*----------------------------
Send a string to UART
Input: s (address of string)
Output:None
----------------------------*/
void SendString(char *s)
{
while (*s) //Check the end of the string
{
SendData(*s++); //Send current char and increment string ptr
}
}
详情请查看STC-ISP里面的范例程序。
作者:
罗斯德隆
时间:
2022-1-15 14:44
你意思是不传其他指令吗?其他指令是些测试指令,有些也不能省的。
作者:
青街古城
时间:
2022-1-16 17:37
可以啊直接在进入main函数的时候直接调用发送字符串函数把你想要的发送出去就可以了啊
作者:
lwh999995
时间:
2022-1-16 22:41
发ESP8266, AT要有斜杠才行
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1