debuggage
This commit is contained in:
@ -330,9 +330,11 @@ function apiSet($argList)
|
||||
}else
|
||||
{
|
||||
$response = "setting property " . $argList["property"] . " of " . $argList["fn"] . " to value: " . $argList["value"];
|
||||
$payload = array($argList["property"] => $argList["value"]);
|
||||
$device = $indexFriendlyNames[$argList["fn"]];
|
||||
$device->payload = array($argList["property"] => $argList["value"]);
|
||||
$device->set($argList["property"], IDLE);
|
||||
publish($argList["topic"] . "/" . $argList["fn"], $payload, "set");
|
||||
//removeEvent($indexFriendlyName($argList["fn"]), $argList["property"], "OFF");
|
||||
//removeEvent($indexFriendlyNames($argList["fn"]), $argList["property"], "OFF");
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
Reference in New Issue
Block a user