确认接收缓冲区大小


确认接收缓冲区大小的命令是rxbuf

"get rxbuf"

应答值是整数形态的字符串。

<?php
include "/lib/sd_spc.php";

$rwbuf = "";
$sid = 14;
spc_reset();
spc_sync_baud(115200);

spc_request_dev($sid, "set uart 115200N81");

$rxbuf_len = (int)spc_request_dev($sid, "get rxbuf");
echo $rxbuf_len;    // output(e.g.): 12288
?>