From 17902461bf4a388ab716c2531c2c6bab630c95cf Mon Sep 17 00:00:00 2001 From: DanielHaefliger Date: Thu, 27 Nov 2025 15:52:54 +0100 Subject: [PATCH] no message --- VGT_Sub/module.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/VGT_Sub/module.php b/VGT_Sub/module.php index 7002774..b3947d5 100644 --- a/VGT_Sub/module.php +++ b/VGT_Sub/module.php @@ -38,28 +38,28 @@ class VGT_Sub extends IPSModule $this->ConnectParent('{F7A0DD2E-7684-95C0-64C2-D2A9DC47577B}'); } - public function ApplyChanges() - { - parent::ApplyChanges(); + public function ApplyChanges() + { + parent::ApplyChanges(); - $this->ConnectParent('{F7A0DD2E-7684-95C0-64C2-D2A9DC47577B}'); + $this->ConnectParent('{F7A0DD2E-7684-95C0-64C2-D2A9DC47577B}'); - $device = $this->ReadPropertyString("DeviceID"); + $device = $this->ReadPropertyString("DeviceID"); - // Subscribes - $topics = [ - "feedback-request/" . $device, - "remote-control-request/" . $device - ]; + // Subscribes + $topics = [ + "feedback-request/" . $device, + "remote-control-request/" . $device + ]; - foreach ($topics as $t) { - $this->SendDataToParent(json_encode([ - "DataID" => "{043E0F88-B2B0-4DF4-B1A6-64FB1C385D3C}", - "PacketType" => 8, // SUBSCRIBE - "Topic" => $t - ])); + foreach ($topics as $t) { + $this->SendDataToParent(json_encode([ + "DataID" => "{043E0F88-B2B0-4DF4-B1A6-64FB1C385D3C}", + "PacketType" => 8, // SUBSCRIBE + "Topic" => $t + ])); + } } - } // ---------------------------------------------------------------------