some debugging and separating callbacks of the main program
This commit is contained in:
1 parent
e702d333c8
commit
e7618f9d86
6 files changed
+161
-56
No files matched your search
+2
-2
@@ -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