esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
subsystem.hpp
Go to the documentation of this file.
1#pragma once
2
5
7
8namespace esphome::api {
9
18class Subsystem {
19public:
20 explicit Subsystem(Client& client) : client_(client) {}
21
22protected:
23 // The owning client. A reference (not a pointer) because the binding is
24 // fixed at construction and a subsystem is intentionally non-assignable.
25 // NOLINTNEXTLINE(cppcoreguidelines-avoid-const-or-ref-data-members)
27};
28
29} // namespace esphome::api
Async client for a single device.
Definition client.hpp:38
Shared base for the subsystems exposed by Client (log streaming, the various proxies,...
Definition subsystem.hpp:18
Client & client_
Definition subsystem.hpp:26
Subsystem(Client &client)
Definition subsystem.hpp:20
Asynchronous orchestrator: owns the event loop and a Connection, and exposes connect/send/subscribe p...
Definition bytes.hpp:10