no message
This commit is contained in:
+17
-17
@@ -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
|
||||||
]));
|
]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user