1
0

pws2mqtt is fonctional\ndebugging

This commit is contained in:
2022-01-08 23:45:38 +01:00
parent e7618f9d86
commit 7acec3a3c4
5 changed files with 56 additions and 17 deletions

View File

@@ -4,6 +4,9 @@ function messageReceived($message)
{
global $topics, $logFh, $devices, $included;
$topic = explode ("/", $message->topic);
$callback = $topics[$topic[0]]->callback;
$callback($topic, $message);
/*
if ($topic[1] == "bridge")
{
switch ($topic[2])
@@ -65,7 +68,7 @@ function messageReceived($message)
}
changeDevice($topic[0], $topic[1], $device["device"], $payloadArray);
//fwrite($logFh, print_r($msg, true));
}
}*/
}
// payload is an array :