public function CompileArduino($_AID = '') { $arduidomRadioCmd = $this->getCmd(null, 'arduidom'); if (!is_object($arduidomRadioCmd)) { $arduidomRadioCmd = new Cmd(); } $arduidomRadioCmd->setName(__('Test', __FILE__)); $arduidomRadioCmd->setLogicalId('arduidom'); $arduidomRadioCmd->setEqLogic_id($this->getId()); $arduidomRadioCmd->setUnite('DATS'); $arduidomRadioCmd->setType('info'); $arduidomRadioCmd->setEventOnly(1); $arduidomRadioCmd->setSubType('numeric'); $arduidomRadioCmd->save(); }