add more logs
parent
baafedbf88
commit
77c10057fa
|
@ -86,17 +86,8 @@ $mqtt->onMessage(function ($message) use (
|
|||
$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 " .
|
||||
implode(", ", $v)
|
||||
);
|
||||
|
||||
logit("got message");
|
||||
});
|
||||
|
||||
logit("Subscribing to $mqttTopic with QoS $qos ");
|
||||
|
|
Loading…
Reference in New Issue