mirror of
https://github.com/dpup/meshstream.git
synced 2026-06-17 00:25:39 +02:00
4eb98b7455
- 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>
11 lines
178 B
Go
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
|
|
} |