pws2mqtt is fonctional\ndebugging
This commit is contained in:
@@ -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 :
|
||||
|
Reference in New Issue
Block a user