1
0

debugging

This commit is contained in:
2022-01-28 23:05:58 +01:00
parent 1361cb9395
commit 425107cec7
22 changed files with 167 additions and 136 deletions

View File

@ -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)
{