debugage
This commit is contained in:
@ -9,6 +9,9 @@ function bool2string($var)
|
||||
}elseif($var === true)
|
||||
{
|
||||
return "true";
|
||||
}elseif ($var === null)
|
||||
{
|
||||
return "null";
|
||||
}else
|
||||
{
|
||||
return $var;
|
||||
@ -72,13 +75,13 @@ function getDevice($topic, $fn)
|
||||
function getValue($ieeeAddress, $property)
|
||||
{
|
||||
global $indexDevices;
|
||||
return $indexDevices[$ieeeAddress]->$property["value"];
|
||||
return $indexDevices[$ieeeAddress]->properties[$property]["value"];
|
||||
}
|
||||
|
||||
function setValue($fn, $property, $value)
|
||||
{
|
||||
global $indexDevices;
|
||||
$indexDevices(RDC_SALON_MVMT2)->occupancy["value"] = $value;
|
||||
$indexDevices[$ieeeAddress]->properties[$property]["value"] = $value;
|
||||
}
|
||||
|
||||
logger(DEBUG, _("signal handling"), __FILE__ . ":" . __LINE__, false);
|
||||
|
Reference in New Issue
Block a user