Add target script for nightstand buttons
This commit is contained in:
parent
71f5c95cfc
commit
e26bb637ad
13
toggleleds.php
Normal file
13
toggleleds.php
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user