Skip to content
Permalink
Browse files

Update cycle_upnpevents.php

  • Loading branch information...
tarasfrompir committed Apr 1, 2019
1 parent c352786 commit b5056830b5b74468ba3979d2e2978d7dccdd0f7a
Showing with 4 additions and 4 deletions.
  1. +4 −4 scripts/cycle_upnpevents.php
@@ -14,7 +14,7 @@
// берем все обьекты со свойством UPNPADDRESS (это показатель того что это УПНП устройство)
// впредь создаем обязательно такое поле для УПНП устройства
$devices = get_all_upnp_devices();
// DebMes (serialize ($devices));
DebMes (serialize ($devices));
// проверяем устройства на online i pravilnost UPNPADDRESS
$controladdress = array();
foreach($devices as $device) {
@@ -24,7 +24,7 @@
$controladdress = array_merge($controladdress, $out);
}
}
// DebMes (serialize ($controladdress));
DebMes (serialize ($controladdress));
// get subscriptions fields
$subscribs = array();
// poluchem polya
@@ -33,11 +33,11 @@
$out = get_subscription_filds($address);
$subscribs = array_merge($subscribs, $out);
}
// DebMes (serialize ($subscribs));
DebMes (serialize ($subscribs));
// subscribe to events
foreach($subscribs as $field) {
subscribe($field);
// DebMes (serialize ($field));
DebMes (serialize ($field));
}
// main cycle
// create socket

0 comments on commit b505683

Please sign in to comment.
You can’t perform that action at this time.