debugging
This commit is contained in:
16
utils.php
16
utils.php
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
logger(DEBUG,"Including utils.php");
|
||||
logger(DEBUG, _("Including utils.php"), __FILE__ . ":" . __LINE__);
|
||||
|
||||
function bool2string($var)
|
||||
{
|
||||
@ -41,7 +41,19 @@ function mktopic($device)
|
||||
return $device->topic . "/" . $device->friendlyName;
|
||||
}
|
||||
|
||||
logger(DEBUG, _("signal handling"), false);
|
||||
function getValue($fn, $property)
|
||||
{
|
||||
global $indexDevices;
|
||||
return $indexDevices[$fn]->$property["value"];
|
||||
}
|
||||
|
||||
function setValue($fn, $property, $value)
|
||||
{
|
||||
global $indexDevices;
|
||||
$indexDevices(RDC_SALON_MVMT2)->occupancy["value"] = $value;
|
||||
}
|
||||
|
||||
logger(DEBUG, _("signal handling"), __FILE__ . ":" . __LINE__, false);
|
||||
//signal handling
|
||||
function signalHandler($signal)
|
||||
{
|
||||
|
Reference in New Issue
Block a user