esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
esphome::api::Subsystem Class Reference

Shared base for the subsystems exposed by Client (log streaming, the various proxies, voice assistant, ...). More...

#include <subsystem.hpp>

Inheritance diagram for esphome::api::Subsystem:
Inheritance graph
[legend]
Collaboration diagram for esphome::api::Subsystem:
Collaboration graph
[legend]

Public Member Functions

 Subsystem (Client &client)
 

Protected Attributes

Clientclient_
 

Detailed Description

Shared base for the subsystems exposed by Client (log streaming, the various proxies, voice assistant, ...).

Each subsystem keeps a back-reference to its owning Client to send requests and register message handlers; this base centralizes that wiring so the concrete subsystems only carry their own state.

A subsystem is owned by — and never outlives — its Client, and is bound to that one client for its whole lifetime, hence the reference member.

Constructor & Destructor Documentation

◆ Subsystem()

esphome::api::Subsystem::Subsystem ( Client client)
inlineexplicit

Member Data Documentation

◆ client_

Client& esphome::api::Subsystem::client_
protected

The documentation for this class was generated from the following file: