From 396c8bb02e83d2a46b1433cbc6b36fe1617b417f Mon Sep 17 00:00:00 2001 From: maze Date: Fri, 27 Feb 2026 16:26:48 +0100 Subject: [PATCH] Changes --- radio/radio.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/radio/radio.go b/radio/radio.go index c4f3815..b50ebda 100644 --- a/radio/radio.go +++ b/radio/radio.go @@ -28,6 +28,15 @@ type Info struct { Extra map[string]any `yaml:"extra" json:"extra"` // Extra metadata } +// Stats descriptor. +type Stats struct { + Voltage float64 `json:"voltage"` // System or battery voltage + Connections int `json:"connections"` // Active connections/neighbours/peers. + Backlog int `json:"backlog"` // Packet/payload backlog + Errors int `json:"errors"` // Errors encountered + NoiseFloor float64 `json:"noise_floor"` // Noise floor +} + type Position struct { Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"`