Menu
I read where this is an easy task but to a newbe, it isn’t that easy. I have a scale attached to computer with RS232. I need a php script to read the weight into a text box.
I found the following:
include “php_serial.class.php”;
$serial = new phpSerial;
$serial->deviceSet(“COM1”);
$serial->confBaudRate(2400);
$serial->confParity(“none”);
$serial->confCharacterLength(8);
$serial->confStopBits(1);
$serial->confFlowControl(“none”);
$serial->deviceOpen();
$read = $serial->readPort();
$serial->deviceClose();
$serial->confBaudRate(2400);
// etc…
But how do I echo the data?