1
0

récupération après crash

This commit is contained in:
2022-12-05 12:23:43 +01:00
parent 559039b5e3
commit a27db71327
22 changed files with 300 additions and 147 deletions

View File

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