5 namespace modbus_controller {
7 static const char *
const TAG =
"modbus_controller.binary_sensor";
21 value = get_data<uint16_t>(data, this->
offset) & this->
bitmask;
29 if (
val.has_value()) {
30 ESP_LOGV(TAG,
"Value overwritten by lambda");
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 ...
void dump_config() override
void publish_state(bool state)
Publish a new state to the front-end.
Implementation of SPI Controller mode.
void parse_and_publish(const std::vector< uint8_t > &data) override