adding command test in apiserver\nsome debugging\nfree sms now running fine
This commit is contained in:
@@ -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