récupération après crash
This commit is contained in:
@ -18,10 +18,6 @@ class hook
|
||||
{
|
||||
$this->init();
|
||||
}
|
||||
if (method_exists($this, "iterate"))
|
||||
{
|
||||
$this->iterate();
|
||||
}
|
||||
foreach ($this->devicelist as $ieeeAddress => $property)
|
||||
{
|
||||
$this->propertyInitialized[$ieeeAddress][$property] = false;
|
||||
|
@ -41,13 +41,16 @@ class device
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->availability = array("value" => null, "functions" => array());
|
||||
$this->properties["availability"] = array("value" => null, "functions" => array());
|
||||
}
|
||||
|
||||
public function set($property, $method = IDLE) //, $event = null)
|
||||
public function set($property, $method = null) //, $event = null)
|
||||
{
|
||||
if ($method !== null)
|
||||
{
|
||||
$this->properties[$property]["method"] = $method;
|
||||
}
|
||||
publish($this->topic . "/" . $this->friendlyName, $this->payload, "set");//, $event);
|
||||
$this->properties[$property]["method"] = $method;
|
||||
}
|
||||
|
||||
public function get()
|
||||
|
Reference in New Issue
Block a user