some debugging and separating callbacks of the main program
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
function message($message)
|
||||
function messageReceived($message)
|
||||
{
|
||||
global $topics, $logFh, $devices, $included;
|
||||
$topic = explode ("/", $message->topic);
|
||||
@@ -69,7 +69,7 @@ function message($message)
|
||||
}
|
||||
|
||||
// payload is an array :
|
||||
// $key is parameter => $value is value of the parameter
|
||||
// $key is property => $value is value of the property
|
||||
|
||||
function publish($topic, $payload, $commande="set", $eventKey)
|
||||
{
|
||||
|
Reference in New Issue
Block a user