func ConnAck(code ConnectCode, sessPresent bool) *ConnAckPacket {
	return &ConnAckPacket{
		header: &FixedHeader{
			PacketType: CONNACK,
			Length:     2,
		},
		Code:           code,
		SessionPresent: sessPresent,
	}
}
// ConnAck creates a new MQTT CONNACK control packet.
ConnAck creates a new MQTT CONNACK control packet.
// ConnAck creates a new MQTT CONNACK control packet .
func ConnAck(code ConnectCode, sessPresent bool) *ConnAckPacket {
	return &ConnAckPacket{
		header: &FixedHeader{
			PacketType: CONNACK,
			Length:     2,
		},
		Code:           code,
		SessionPresent: sessPresent,
	}
}
func ConnAck ( code ConnectCode , sessPresent bool ) * ConnAckPacket { return & ConnAckPacket { header : & FixedHeader { PacketType : CONNACK , Length : 2 , } , Code : code , SessionPresent : sessPresent , } }
ConnAck creates a new MQTT CONNACK control packet.
ConnAck creates a new MQTT CONNACK control packet .