From e9ca5ae0e6d36cbff1a2be2753062d7779dcf906 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Tue, 16 Jun 2026 16:08:50 +0200 Subject: [PATCH] no message --- MQTTBatterySDL/module.php | 55 --------------------------------------- 1 file changed, 55 deletions(-) diff --git a/MQTTBatterySDL/module.php b/MQTTBatterySDL/module.php index a903433..69d3c5b 100644 --- a/MQTTBatterySDL/module.php +++ b/MQTTBatterySDL/module.php @@ -436,23 +436,6 @@ class MQTTBatterySDL extends IPSModule } - -/* - private function PublishMQTT(string $topic, string $payload) - { - $this->SafeSend([ - 'DataID' => '{043EA491-0325-4ADD-8FC2-A30C8EEB4D3F}', - 'PacketType' => 3, - 'QualityOfService' => 0, - 'Retain' => false, - 'Topic' => $topic, - 'Payload' => $payload - ]); - - $this->SendDebug('PublishMQTT', $topic . ' → ' . $payload, 0); - }*/ - - private function PublishViaHelper(string $topic, string $payload) { $id = $this->ReadPropertyInteger('PublishInstanceID'); @@ -499,44 +482,6 @@ public function DoDelayedPublish() 'Payload' => $payload ])); } -/* Von DH auskommentiert am 2.6. -public function DoDelayedPublish() -{ - $this->SetTimerInterval('PublishDelay', 0); - - $topic = $this->GetBuffer('PublishTopic'); - $payload = $this->GetBuffer('PublishPayload'); - - $this->SetBuffer('PublishTopic', ''); - $this->SetBuffer('PublishPayload', ''); - - if ($topic == '' || $payload == '') { - return; - } - - $this->PublishViaHelper($topic, $payload); -} -*/ - -/* - private function SafeSend(array $packet) -{ - $parent = @IPS_GetInstance($this->InstanceID)['ConnectionID'] ?? 0; - - if ($parent === 0 || !IPS_InstanceExists($parent)) { - $this->SendDebug('SafeSend', 'Kein Parent vorhanden', 0); - return; - } - - if (IPS_GetInstance($parent)['InstanceStatus'] !== 102) { - $this->SendDebug('SafeSend', 'Parent nicht aktiv', 0); - return; - } - - @$this->SendDataToParent(json_encode($packet)); -} - -*/ private function IsValidVariable(int $id) {