diff --git a/protocol/protocol.go b/protocol/protocol.go index 5a1d811..6aa68a6 100644 --- a/protocol/protocol.go +++ b/protocol/protocol.go @@ -35,6 +35,11 @@ type PacketReceiver interface { RawPackets() <-chan *Packet } +type StatsReceiver interface { + // Stats returns a channel that receives stats updates. + Stats() <-chan map[string]any +} + type PacketTransmitter interface { radio.Device