topic . "/" . $device->friendlyName; } function getValue($ieeeAddress, $property) { global $indexDevices; return $indexDevices[$ieeeAddress]->$property["value"]; } function setValue($fn, $property, $value) { global $indexDevices; $indexDevices(RDC_SALON_MVMT2)->occupancy["value"] = $value; } logger(DEBUG, _("signal handling"), __FILE__ . ":" . __LINE__, false); //signal handling function signalHandler($signal) { endMoha(); } pcntl_signal(SIGTERM, 'signalHandler');// Termination ('kill' was called) pcntl_signal(SIGHUP, 'signalHandler'); // Terminal log-out pcntl_signal(SIGINT, 'signalHandler'); ?>