/// <summary> /// Send SUBACK message to the client /// </summary> /// <param name="messageId">Message Id for the SUBSCRIBE message that is being acknowledged</param> /// <param name="grantedQosLevels">Granted QoS Levels</param> public void Suback(ushort messageId, byte[] grantedQosLevels) { MqttMsgSuback suback = new MqttMsgSuback(); suback.MessageId = messageId; suback.GrantedQoSLevels = grantedQosLevels; this.Send(suback.GetBytes()); }