Compare commits
	
		
			2 Commits
		
	
	
		
			3425d893a1
			...
			e26bb637ad
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| e26bb637ad | |||
| 71f5c95cfc | 
| 
						 | 
				
			
			@ -6,7 +6,6 @@ $command = 0x00;
 | 
			
		|||
$target = intval($_SESSION['LEDTARGETID']);
 | 
			
		||||
$unique = mt_rand(1, 2000000000);
 | 
			
		||||
 | 
			
		||||
echo "Target: ", $target;
 | 
			
		||||
$data = pack("LLLCL", PACKETFILTER[0], PACKETFILTER[1], $unique, $command, $target);
 | 
			
		||||
 | 
			
		||||
transmitMessage($data);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,6 @@ $red = hexdec(substr($hex, 0, 2));
 | 
			
		|||
$green = hexdec(substr($hex, 2, 2));
 | 
			
		||||
$blue = hexdec(substr($hex, 4, 2));
 | 
			
		||||
 | 
			
		||||
var_dump($targets);
 | 
			
		||||
foreach ( $targets as $target ) {
 | 
			
		||||
   $target = intval($target);
 | 
			
		||||
   $unique = mt_rand(1, 2000000000);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										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