- some debugging
- adding logs in mysql database
This commit is contained in:
@ -175,7 +175,8 @@ function iterateDevice($topic, $fn, &$device, $payloadArray)
|
||||
$device->$key["value"] = $value;
|
||||
$changed[$fn]["key"] = $key;
|
||||
$changed[$fn]["value"] = $value;
|
||||
|
||||
logger(INFO, sprintf(_("Device %s property %s, value changed to %s"), $device->friendlyName, $key, $value));
|
||||
$mohaDB->logProperty($device, $key, $value);
|
||||
//echo "oldvalue => " . print_r($oldValue, true) . EOL;
|
||||
/*if (empty($oldValue))
|
||||
{
|
||||
@ -204,7 +205,7 @@ function iterateDevice($topic, $fn, &$device, $payloadArray)
|
||||
|
||||
function getDevicesValues()
|
||||
{
|
||||
|
||||
//TODO
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user