Files
meshstream/mqtt/packet.go
T
2025-04-21 22:34:49 -07:00

13 lines
302 B
Go

package mqtt
import (
meshtreampb "meshstream/generated/meshstream"
)
// NewPacket creates a new Packet from a data packet and topic info
func NewPacket(data *meshtreampb.Data, topicInfo *meshtreampb.TopicInfo) *meshtreampb.Packet {
return &meshtreampb.Packet{
Data: data,
Info: topicInfo,
}
}