DuoFernConfigurator/module_public.php
/**
     * Starts pairing mode for n seconds
     *
     * @param int $seconds
     *            time the pairing mode is activated in seconds
     * @return boolean true if started, false if not
     */
Starts pairing mode for n seconds
@param int $seconds
time the pairing mode is activated in seconds
@return boolean true if started, false if not
Starts pairing mode for n seconds @param int $seconds time the pairing mode is activated in seconds @return boolean true if started false if not
public function StartPairingMode(int $seconds)
    {
        $result = $this->SendRawMsg(DuoFernMessage::DUOFERN_MSG_PAIR_START);
        if ($result == false) {
            return false;
        }
        IPS_LogMessage(IPS_GetName($this->InstanceID), $this->Translate("Start pairing mode..."));
        $this->SetTimerInterval("StopPairingMode", $seconds * 1000);
        return true;
    }
public function StartPairingMode ( int $ seconds ) { $ result = $ this -> SendRawMsg ( DuoFernMessage :: DUOFERN_MSG_PAIR_START ) ; if ( $ result == false ) { return false ; } IPS_LogMessage ( IPS_GetName ( $ this -> InstanceID ) , $ this -> Translate ( " Start pairing mode... " ) ) ; $ this -> SetTimerInterval ( " StopPairingMode " , $ seconds * 1000 ) ; return true ; }
Starts pairing mode for n seconds
 @param int $seconds
            time the pairing mode is activated in seconds
 @return boolean true if started, false if not
Starts pairing mode for n seconds @param int $seconds time the pairing mode is activated in seconds @return boolean true if started false if not
// message not sent // start pairing mode // start timer