|
esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
|
Bridges raw Z-Wave frames between a client and the device's Z-Wave radio. More...
#include <zwave_proxy.hpp>


Public Types | |
| using | FrameHandler = std::function< void(const ZWaveProxyFrame &)> |
Public Member Functions | |
| ZWaveProxy (Client &client) | |
| void | on_frame (FrameHandler handler) |
| Register a callback fired for each incoming ZWaveProxyFrame. | |
| void | send_frame (const std::string &data) const |
| Send a raw Z-Wave frame to the device. | |
| void | request (ZWaveProxyRequestType type, const std::string &data={}) const |
| Issue a proxy control request (subscribe, unsubscribe, home id change). | |
Public Member Functions inherited from esphome::api::Subsystem | |
| Subsystem (Client &client) | |
Additional Inherited Members | |
Protected Attributes inherited from esphome::api::Subsystem | |
| Client & | client_ |
Bridges raw Z-Wave frames between a client and the device's Z-Wave radio.
| using esphome::api::ZWaveProxy::FrameHandler = std::function<void(const ZWaveProxyFrame&)> |
|
inlineexplicit |
| void esphome::api::ZWaveProxy::on_frame | ( | FrameHandler | handler | ) |
Register a callback fired for each incoming ZWaveProxyFrame.
| void esphome::api::ZWaveProxy::request | ( | ZWaveProxyRequestType | type, |
| const std::string & | data = {} |
||
| ) | const |
Issue a proxy control request (subscribe, unsubscribe, home id change).
data carries the optional request payload.
| void esphome::api::ZWaveProxy::send_frame | ( | const std::string & | data | ) | const |
Send a raw Z-Wave frame to the device.