src/Server/Asyn/MQTT/MQTT.php
protected function simpleCommand($type, $msgid = 0)
    {
        $msgobj = $this->getMessageObject($type);

        if ($msgid) {
            $msgobj->setMsgID($msgid);
        }

        return $this->message_write($msgobj);
    }
protected function simpleCommand($type, $msgid = 0)
    {
        $msgobj = $this->getMessageObject($type);

        if ($msgid) {
            $msgobj->setMsgID($msgid);
        }

        return $this->message_write($msgobj);
    }
protected function simpleCommand ( $ type , $ msgid = 0 ) { $ msgobj = $ this -> getMessageObject ( $ type ) ; if ( $ msgid ) { $ msgobj -> setMsgID ( $ msgid ) ; } return $ this -> message_write ( $ msgobj ) ; }
Send Simple Commands


@param int $type
@param int $msgid
@return int           bytes written
Send Simple Commands