1
0

- some debugging

- adding logs in mysql database
This commit is contained in:
2022-01-10 00:12:30 +01:00
parent 7acec3a3c4
commit cd20e973cd
5 changed files with 55 additions and 4 deletions

View File

@ -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
}
?>