adding command test in apiserver\nsome debugging\nfree sms now running fine
This commit is contained in:
1 parent
97f8050d29
commit
555abb7c88
14 files changed
+182
-66
No files matched your search
@@ -8,6 +8,7 @@ function linky2mqttCallback($topic, $message)
|
||||
{
|
||||
global $topics, $logFh, $devices, $included;
|
||||
$topicName = $topic[0];
|
||||
$topics[$topicName]->lastSeen = time();
|
||||
$friendlyName = $topic[1]; // get friendlyName
|
||||
logger(INFO, sprintf(_("Incoming notification of device %s"), $topicName, $fn), __FILE__ . ":" . __LINE__);
|
||||
$payloadArray = json_decode($message->payload, true);
|
||||
@@ -36,4 +37,6 @@ function linky2mqttCallback($topic, $message)
|
||||
//print_r($device["device"]);
|
||||
}
|
||||
$topics["linky2mqtt"]->callback = "linky2mqttCallback";
|
||||
$topics["linky2mqtt"]->timeOut = 3; // timeOut in minutes
|
||||
$topics["linky2mqtt"]->lastSeen = time();
|
||||
?>
|
||||
Reference in new issue
Block a user