Files
meshstream/mqtt/packet.go
T
Daniel Pupius 4f6ee2ffde go fmt
2025-05-02 13:50:28 -07:00

14 lines
303 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,
}
}