feat(modem): method to configure APN/authentication

This commit is contained in:
2025-06-11 12:11:17 +02:00
parent 359a0018c5
commit 3224e1ef0f
7 changed files with 133 additions and 0 deletions

View File

@ -193,4 +193,18 @@ func (c *Client) SetBaseCorrections(ctx context.Context, funcs ...protocol.SetBa
}
return nil
}
// SetModem implements protocol.Operations.
func (c *Client) SetModem(ctx context.Context, funcs ...protocol.SetModemOptionsFunc) error {
_, ops, err := c.getProtocol(ctx)
if err != nil {
return errors.WithStack(err)
}
if err := ops.SetModem(ctx, funcs...); err != nil {
return errors.WithStack(err)
}
return nil
}
var _ protocol.Operations = &Client{}