串口接收一个字符串


str urecv(int un);
//un:串口号 0或者1,
//返回:接收的字符串内容

示例

str s;
s=urecv(1);

注意