Add target script for nightstand buttons

This commit is contained in:
Junior 2025-03-06 12:50:02 -05:00
parent 71f5c95cfc
commit e26bb637ad

13
toggleleds.php Normal file
View File

@ -0,0 +1,13 @@
<?php
require 'header.php';
$targets = [1, 2, 3];
$command = 0x00;
foreach ( $targets as $target ) {
$target = intval($target);
$unique = mt_rand(1, 2000000000);
$data = pack("LLLCL", PACKETFILTER[0], PACKETFILTER[1], $unique, $command, $target);
transmitMessage($data);
}