add more logs
parent
e1877d6761
commit
baafedbf88
|
@ -85,13 +85,17 @@ $mqtt->onMessage(function ($message) use (
|
|||
$payload["timestamp"] = time();
|
||||
$data[] = $payload;
|
||||
$news = true;
|
||||
$v = [];
|
||||
foreach ($$payload["labels"] as $key => $value) {
|
||||
$v[] = $key . "=" . $value;
|
||||
}
|
||||
logit(
|
||||
"got message for " .
|
||||
$payload["name"] .
|
||||
": " .
|
||||
implode(", ", $payload["labels"]) .
|
||||
" with value " .
|
||||
$payload["value"]
|
||||
implode(", ", $v)
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue