Files
meshstream/mqtt/packet.go
T
Daniel Pupius 4eb98b7455 Simplify MQTT package API by embedding TopicInfo
- Created Packet to combine DecodedPacket and TopicInfo
- Updated MQTT client to return Packet instead of wrapper type
- Modified main.go to use the simplified structure
- Updated tests to use the new Packet type

This change simplifies the API and reduces the cognitive load
for consumers of the MQTT package.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-20 19:08:01 -07:00

11 lines
178 B
Go

package mqtt
import (
"meshstream/decoder"
)
// Packet extends the DecodedPacket with MQTT topic information
type Packet struct {
*decoder.DecodedPacket
*decoder.TopicInfo
}