wip getModem

This commit is contained in:
2025-06-30 16:25:20 +02:00
parent 1fcf748310
commit 532d96a9be
7 changed files with 100 additions and 1 deletions

View File

@ -173,3 +173,13 @@ func (o *Operations) PostModem(ctx context.Context, config *model.ModemAuthentic
return &updated, nil
}
func (o *Operations) GetModem(ctx context.Context) (*model.ModemAuthentication, error) {
config := &model.ModemAuthentication{}
if err := o.GetJSON("/modem/1/settings", config); err != nil {
return nil, errors.WithStack(err)
}
return config, nil
}