correct mqtt topic
[vaillant-thermostat] / serial.pl
index 06a1d15..a45c9ac 100755 (executable)
--- a/serial.pl
+++ b/serial.pl
@@ -30,7 +30,7 @@ my $sym;
 
 sub _mqtt_pub {
        my ( $t, $m ) = @_;
-       my $cmd = "mosquitto_pub -h rpi2 -t 'stat/rpi/$t' -m '$m'";
+       my $cmd = "mosquitto_pub -h rpi2 -t '$t' -m '$m'";
        #warn "# _mqtt_pub [$t] = [$m]\n";
        warn "## $cmd";
        system $cmd;