Compile-time configuration flags for esphome-api-client.
Tunables for a Connection's handshake and keepalive behaviour.
constexpr unsigned default_port
Default TCP port of the ESPHome native API.
Definition config.hpp:18
Everything needed to reach and authenticate with one ESPHome device.
Definition client_options.hpp:16
std::string host
Device hostname or IP.
Definition client_options.hpp:18
std::uint16_t port
TCP port (default 6053).
Definition client_options.hpp:21
ConnectionOptions connection
Handshake / keepalive tunables (client_info, Noise PSK, timeouts, ...).
Definition client_options.hpp:24
bool subscribe_on_connect
When true (default), SyncClient::connect() automatically enumerates the device's entities and subscri...
Definition client_options.hpp:29
ClientOptions(std::string h, const std::uint16_t p=static_cast< std::uint16_t >(default_port))
Definition client_options.hpp:32
Knobs controlling a single Connection. Defaults mirror aioesphomeapi.
Definition connection_options.hpp:12