update MQTT topic format in CounterClient module

This commit is contained in:
jhartworks
2026-04-16 12:32:38 +02:00
parent 2f2a0512b3
commit ca59d8b15b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class CounterClient extends IPSModule
if ($this->ReadPropertyBoolean('EnableMQTT')) {
$mqttClientId = $this->ReadPropertyInteger('MqttClientID');
$mqttTopic = $this->ReadPropertyInteger('Projectyear').'/'.$this->ReadPropertyInteger('Projectnumber').'/Counters';
$mqttTopic = 'Projekte/'.$this->ReadPropertyInteger('Projectyear').'/P'.$this->ReadPropertyInteger('Projectnumber').'/Counters';
if ($mqttClientId > 0 && IPS_InstanceExists($mqttClientId) && $mqttTopic !== '') {
$this->MqttPublish($mqttClientId, $mqttTopic, $json, true);
+1 -1
View File
@@ -8,6 +8,6 @@
"date": 1491343200
},
"version": "1.0",
"build": 1,
"build": 2,
"date": 0
}