no message

This commit is contained in:
dh
2025-11-27 15:52:54 +01:00
parent e3e0231d6d
commit 17902461bf
+17 -17
View File
@@ -38,28 +38,28 @@ class VGT_Sub extends IPSModule
$this->ConnectParent('{F7A0DD2E-7684-95C0-64C2-D2A9DC47577B}'); $this->ConnectParent('{F7A0DD2E-7684-95C0-64C2-D2A9DC47577B}');
} }
public function ApplyChanges() public function ApplyChanges()
{ {
parent::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 // Subscribes
$topics = [ $topics = [
"feedback-request/" . $device, "feedback-request/" . $device,
"remote-control-request/" . $device "remote-control-request/" . $device
]; ];
foreach ($topics as $t) { foreach ($topics as $t) {
$this->SendDataToParent(json_encode([ $this->SendDataToParent(json_encode([
"DataID" => "{043E0F88-B2B0-4DF4-B1A6-64FB1C385D3C}", "DataID" => "{043E0F88-B2B0-4DF4-B1A6-64FB1C385D3C}",
"PacketType" => 8, // SUBSCRIBE "PacketType" => 8, // SUBSCRIBE
"Topic" => $t "Topic" => $t
])); ]));
}
} }
}
// --------------------------------------------------------------------- // ---------------------------------------------------------------------