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:
+1
-1
@@ -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
|
||||
|
||||
@@ -8,5 +8,6 @@ type TelemetryProvider interface {
|
||||
Stream() (<-chan TelemetryData, error)
|
||||
Subscribe(map[int16]FieldID)
|
||||
IsAlive(time.Duration) bool
|
||||
Name() string
|
||||
Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user