LAN DS18B20 WEB Temperature Monitor 1 meter Cable

USB Relay Module for Windows, Linux, Raspberry Pi

Spread the love

include ‘PhpSerial.php’;

// Let’s start the class
$serial = new PhpSerial;

// First we must specify the device. This works on both Linux and Windows
// (if your linux serial device is /dev/ttyS0 for COM1, etc)

// We can change the baud rate, parity, length, stop bits, flow control

// Then we need to open it

// To write into ON command


// To write into OFF comand

// If you want to change the configuration, the device must be closed

KMtronic LAN WEB 8 Channel Relay board