this is a doozy - device auto discovery and handling

The main goal was to decouple more things
We got devices being looked for in the background and the stream view
is like a device now too
This commit is contained in:
2026-09-17 22:55:17 +01:00
parent 20025dae1b
commit 65f03fd4c9
17 changed files with 327 additions and 111 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ func (tf *TelemetryField) String() string {
return "NaN"
}
type FieldID uint16
type FieldID = uint16
// We use FirstField to start the count on the fields the user can select
// the first three will be for internal use
+1
View File
@@ -8,5 +8,6 @@ type TelemetryProvider interface {
Stream() (<-chan TelemetryData, error)
Subscribe(map[int16]FieldID)
IsAlive(time.Duration) bool
Name() string
Close()
}