Advertisement
jmg123

LWRF_Switch.pl

Jan 12th, 2013
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.40 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use IO::Socket;
  3. use strict;
  4.  
  5. #Change the PeerAddr to your Lightwave RF wifi link IP Address
  6.  
  7. my $sock = IO::Socket::INET->new(
  8.     Proto    => 'udp',
  9.     PeerPort => 9760,
  10.     PeerAddr =>  '192.168.1.21',
  11. ) or die "Could not create socket: $!\n";
  12.  
  13. my $LWRFCmd =   "000, !R" . $ARGV[0] . "D" . $ARGV[1] . "F" . $ARGV[2] . "|";
  14.  
  15. $sock->send($LWRFCmd) or die "Send error: $!\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement