03-13-2023, 04:52 AM
(03-13-2023, 04:35 AM)admin Wrote: see this guide about PHP tcp socket connection code:
https://www.php.net/manual/en/function.s...onnect.php
So it is just a string to send to the server/device?
Sample:
PHP Code:
$message = 'RELAY-SET-255,1,0';
socket_write($socket, $message, strlen($message));

