func Subscribe(id int, topics []TopicSubscription) *SubscribePacket {
	return &SubscribePacket{
		header: &FixedHeader{
			PacketType: SUBSCRIBE,
			QoS:        0x01,
		},
		ID:     id,
		Topics: topics,
	}
}
// Subscribe creates a new MQTT SUBSCRIBE control packet.
Subscribe creates a new MQTT SUBSCRIBE control packet.
// Subscribe creates a new MQTT SUBSCRIBE control packet .
func Subscribe(id int, topics []TopicSubscription) *SubscribePacket {
	return &SubscribePacket{
		header: &FixedHeader{
			PacketType: SUBSCRIBE,
			QoS:        0x01,
		},
		ID:     id,
		Topics: topics,
	}
}
func Subscribe ( id int , topics [ ] TopicSubscription ) * SubscribePacket { return & SubscribePacket { header : & FixedHeader { PacketType : SUBSCRIBE , QoS : 0x01 , } , ID : id , Topics : topics , } }
Subscribe creates a new MQTT SUBSCRIBE control packet.
Subscribe creates a new MQTT SUBSCRIBE control packet .