http://www.info.kmtronic.com/km-udp-eight-relay-box.html
PHP code for STATUS Read UDP Relay board connected to IP: 192.168.1.199 PORT:12345
UDP COMMAND: FF0000
Create a new file. <?php $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
Save the file as status.php and run. ( $ php status.php )
Result: $ php list.php
PHP code for CONTROL UDP Relay board connected to IP: 192.168.1.199 PORT:12345
UDP COMMANDS: FF0801 // TURN ON Relay 8
Create a new file. <?php $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); Save the file as relay_1_on.php and run. ( $ php relay_1_on.php ) |