feat(reachview): GetModemConfiguration func

This commit is contained in:
2025-07-08 09:00:13 +02:00
parent 1fcf748310
commit daadb9b678
10 changed files with 160 additions and 17 deletions

View File

@ -207,4 +207,19 @@ func (c *Client) SetModem(ctx context.Context, funcs ...protocol.SetModemOptions
return nil
}
// GetModemConfiguration implements protocol.Operations.
func (c *Client) GetModemConfiguration(ctx context.Context) (any, error) {
_, ops, err := c.getProtocol(ctx)
if err != nil {
return nil, errors.WithStack(err)
}
config, err := ops.GetModemConfiguration(ctx)
if err != nil {
return nil, errors.WithStack(err)
}
return config, nil
}
var _ protocol.Operations = &Client{}