feat(modem): method to configure APN/authentication
This commit is contained in:
@ -162,3 +162,13 @@ func (o *Operations) GetConfiguration(ctx context.Context) (*model.Configuration
|
||||
|
||||
return config, nil
|
||||
}
|
||||
|
||||
func (o *Operations) PostModem(ctx context.Context, config *model.ModemAuthentication) (*model.ModemAuthentication, error) {
|
||||
var updated model.ModemAuthentication
|
||||
|
||||
if err := o.PostJSON("/modem/1/settings", config, &updated); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return &updated, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user