1
0

some debugging and modifying hooks functions to fetch parameters

This commit is contained in:
2022-01-05 00:01:41 +01:00
parent c97f05d2b6
commit 85a7fd7ed9
7 changed files with 81 additions and 31 deletions

View File

@ -23,9 +23,9 @@ class rdc_sdb_eclairage
// assigne the function to the sensors devices
if ($this->active === true)
{
foreach ($this->devicelist as $ieeeAddress)
foreach ($this->devicelist as $ieeeAddress => $param)
{
$indexDevices[$ieeeAddress]->functions[] = array($this,"callback");
$indexDevices[$ieeeAddress]->$param["functions"][] = array($this,"callback");
}
}
}