feat: use /configuration/device and replice reachview system to define
antenna height See Pyxis/fieldnotes#63 (comment)
This commit is contained in:
@ -123,6 +123,21 @@ func (c *Client) SetBase(ctx context.Context, funcs ...protocol.SetBaseOptionFun
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetBaseInfo implements protocol.Operations.
|
||||
func (c *Client) GetBaseInfo(ctx context.Context) (*protocol.BaseInfo, error) {
|
||||
_, ops, err := c.getProtocol(ctx)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
baseInfo, err := ops.GetBaseInfo(ctx)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return baseInfo, nil
|
||||
}
|
||||
|
||||
// Reboot implements protocol.Operations.
|
||||
func (c *Client) Reboot(ctx context.Context) error {
|
||||
_, ops, err := c.getProtocol(ctx)
|
||||
|
Reference in New Issue
Block a user