spc_request_sys()


request sending a common system command to smart expansion boards

Description

string spc_request_sys(int $sid, string $cmd)

Parameters

Return Value

a response string according to each command

Example

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

spc_reset();
spc_sync_baud();
spc_scan();

$sid = 1;

echo spc_request_sys($sid, "get did");
echo spc_request_sys($sid, "get uid");
?>

See also