feat(ReachV33): getModemAuthentication

This commit is contained in:
2025-09-29 14:17:51 +02:00
parent 0e0ff22a46
commit 9a57e8d8bd
5 changed files with 47 additions and 3 deletions

View File

@@ -174,7 +174,7 @@ func (o *Operations) PostModem(ctx context.Context, config *model.ModemAuthentic
return &updated, nil
}
func (o *Operations) GetModem(ctx context.Context) (*model.ModemConfiguration, error) {
func (o *Operations) GetModemInfo(ctx context.Context) (*model.ModemConfiguration, error) {
config := &model.ModemConfiguration{}
if err := o.GetJSON("/modem/1/info", config); err != nil {
@@ -183,3 +183,13 @@ func (o *Operations) GetModem(ctx context.Context) (*model.ModemConfiguration, e
return config, nil
}
func (o *Operations) GetModemSettings(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
}