Everything needed to reach and authenticate with one ESPHome device.
More...
#include <client_options.hpp>
|
| std::string | host |
| | Device hostname or IP.
|
| |
| std::uint16_t | port = static_cast<std::uint16_t>(default_port) |
| | TCP port (default 6053).
|
| |
| ConnectionOptions | connection |
| | Handshake / keepalive tunables (client_info, Noise PSK, timeouts, ...).
|
| |
| bool | subscribe_on_connect = true |
| | When true (default), SyncClient::connect() automatically enumerates the device's entities and subscribes to state updates, so entities() is populated and live as soon as connect() returns.
|
| |
Everything needed to reach and authenticate with one ESPHome device.
◆ ClientOptions() [1/2]
| esphome::api::ClientOptions::ClientOptions |
( |
| ) |
|
|
default |
◆ ClientOptions() [2/2]
| esphome::api::ClientOptions::ClientOptions |
( |
std::string |
h, |
|
|
const std::uint16_t |
p = static_cast<std::uint16_t>(default_port) |
|
) |
| |
|
inline |
◆ connection
Handshake / keepalive tunables (client_info, Noise PSK, timeouts, ...).
◆ host
| std::string esphome::api::ClientOptions::host |
◆ port
| std::uint16_t esphome::api::ClientOptions::port = static_cast<std::uint16_t>(default_port) |
◆ subscribe_on_connect
| bool esphome::api::ClientOptions::subscribe_on_connect = true |
When true (default), SyncClient::connect() automatically enumerates the device's entities and subscribes to state updates, so entities() is populated and live as soon as connect() returns.
The documentation for this struct was generated from the following file: