1
0

some debugging and separating callbacks of the main program

This commit is contained in:
2022-01-08 11:51:50 +01:00
parent e702d333c8
commit e7618f9d86
6 changed files with 161 additions and 56 deletions

View File

@@ -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)
{