|
esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
|
Subscribes to and surfaces the device's log stream. More...
#include <log_stream.hpp>


Public Types | |
| using | Handler = std::function< void(const LogEntry &)> |
Public Member Functions | |
| LogStream (Client &client) | |
| void | subscribe (LogLevel level, Handler handler, bool dump_config=false) |
Begin streaming logs at level or more severe. | |
Public Member Functions inherited from esphome::api::Subsystem | |
| Subsystem (Client &client) | |
Additional Inherited Members | |
Protected Attributes inherited from esphome::api::Subsystem | |
| Client & | client_ |
Subscribes to and surfaces the device's log stream.
| using esphome::api::LogStream::Handler = std::function<void(const LogEntry&)> |
|
inlineexplicit |
| void esphome::api::LogStream::subscribe | ( | LogLevel | level, |
| Handler | handler, | ||
| bool | dump_config = false |
||
| ) |
Begin streaming logs at level or more severe.
dump_config asks the device to also dump its configuration. handler receives each line.