5namespace modbus_controller {
7static const char *
const TAG =
"modbus_controller.binary_sensor";
29 if (
val.has_value()) {
30 ESP_LOGV(TAG,
"Value overwritten by lambda");
void publish_state(bool state)
Publish a new state to the front-end.
void dump_config() override
void parse_and_publish(const std::vector< uint8_t > &data) override
optional< transform_func_t > transform_func_
ModbusRegisterType register_type
bool coil_from_vector(int coil, const std::vector< uint8_t > &data)
Extract coil data from modbus response buffer Responses for coil are packed into bytes .
T get_data(const std::vector< uint8_t > &data, size_t buffer_offset)
Extract data from modbus response buffer.
Providing packet encoding functions for exchanging data with a remote host.