Description of a serial proxy instance exposed by an Espex.SerialProxy
adapter.
Adapters return a list of these from Espex.SerialProxy.list_instances/0.
The :instance integer is the stable identifier used by the ESPHome client
in SerialProxyConfigureRequest, SerialProxyWriteRequest, etc. — the
adapter chooses the numbering and must keep it stable for the lifetime of
the device.
Summary
Functions
Build an %Info{} from keyword options.
Convert to the protobuf SerialProxyInfo message used inside
DeviceInfoResponse.serial_proxies.
Types
@type port_type() :: :ttl | :rs232 | :rs485
@type t() :: %Espex.SerialProxy.Info{ instance: non_neg_integer(), name: String.t(), port_type: port_type() }