func PubRec(id int) *PubRecPacket {
	return &PubRecPacket{
		header: &FixedHeader{
			PacketType: PUBREC,
			Length:     2, // for Message ID field
		},
		ID: id,
	}
}
// PubRec creates a new MQTT PUBREC packet.
PubRec creates a new MQTT PUBREC packet.
// PubRec creates a new MQTT PUBREC packet .
func PubRec(id int) *PubRecPacket {
	return &PubRecPacket{
		header: &FixedHeader{
			PacketType: PUBREC,
			Length:     2, 
		},
		ID: id,
	}
}
func PubRec ( id int ) * PubRecPacket { return & PubRecPacket { header : & FixedHeader { PacketType : PUBREC , Length : 2 , } , ID : id , } }
PubRec creates a new MQTT PUBREC packet.
PubRec creates a new MQTT PUBREC packet .
// for Message ID field