wip SetBaseMode
This commit is contained in:
@ -183,3 +183,13 @@ func (o *Operations) GetModem(ctx context.Context) (*model.ModemConfiguration, e
|
||||
|
||||
return config, nil
|
||||
}
|
||||
|
||||
func (o *Operations) PostBaseMode(ctx context.Context, base *model.Base) (*model.Base, error) {
|
||||
var updated model.Base
|
||||
|
||||
if err := o.PostJSON("/configuration/base_mode", base, &updated); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return &updated, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user