feat: use /configuration/device and replice reachview system to define
antenna height See Pyxis/fieldnotes#63 (comment)
This commit is contained in:
@ -2,6 +2,14 @@ package protocol
|
||||
|
||||
import "context"
|
||||
|
||||
type BaseInfo struct {
|
||||
Mode string
|
||||
AntennaOffset float64
|
||||
Latitude float64
|
||||
Longitude float64
|
||||
Height float64
|
||||
}
|
||||
|
||||
type Operations interface {
|
||||
// Connect initiates a new connection to the ReachView service
|
||||
// It should be called before any other operation
|
||||
@ -29,6 +37,8 @@ type Operations interface {
|
||||
// SetBase updates the base configuration
|
||||
SetBase(ctx context.Context, funcs ...SetBaseOptionFunc) error
|
||||
|
||||
GetBaseInfo(ctx context.Context) (*BaseInfo, error)
|
||||
|
||||
// Reboot restarts the module
|
||||
Reboot(ctx context.Context) error
|
||||
}
|
||||
|
Reference in New Issue
Block a user