specify also inverval unit (days, hours)
[zc] / zc-send
diff --git a/zc-send b/zc-send
index 3e188ca..b7fe2c8 100755 (executable)
--- a/zc-send
+++ b/zc-send
@@ -54,6 +54,11 @@ if ( $ARGV[0] =~ m/interval/ ) {
        print "Set alarm arming $rel_zero\n";
        $raw = write_parameter_frame( "\x3a" => "\x11" . pack('C',$rel_zero) );
 
+} elsif ( $ARGV[0] =~ m/mqtt/ ) {
+       my @mqtt = qw(185 201 196 30 1883);
+       print "Set server port ", join(' ', @mqtt), "\n";
+       $raw = write_parameter_frame( "\x14" => "\x06" . pack('CCCCs',@mqtt) );
+
 } else {
        print "read_parameter_frame\n";
        $raw = read_parameter_frame( "\x00" => "\x04\xe8\x03\x00\x00",