Bravia.Client (Bravia v0.1.0)

Copy Markdown View Source

A configured connection to one television.

Build one with Bravia.new/2 rather than constructing the struct directly.

The client holds a Req.Request, which is how callers customise transport behaviour — retries, timeouts, and, in tests, a :plug stub. The library deliberately does not wrap those in options of its own.

The :psk field is redacted by Inspect so the key cannot reach logs or crash dumps.

Summary

Types

t()

@type t() :: %Bravia.Client{
  base_url: String.t(),
  psk: String.t() | nil,
  req: Req.Request.t() | nil
}