ESPHome 2026.9.0-dev
Loading...
Searching...
No Matches
esphome::modbus_client::ReadCommandOptions< Ts > Class Template Reference

The read-side per-command options (modbus::CommandOptions), declared once for every action that sends a read. More...

#include <modbus_client.h>

Detailed Description

template<typename... Ts>
class esphome::modbus_client::ReadCommandOptions< Ts >

The read-side per-command options (modbus::CommandOptions), declared once for every action that sends a read.

Each option is templatable, so it cannot be built in Python the way modbus_controller builds its static struct; declaring the values here instead of per action means a new read option costs one TEMPLATABLE_VALUE plus one field below, and every read action picks it up. The read/write split mirrors _COMMAND_OPTIONS in the modbus component's Python (command_options_schema(direction="read") adds exactly these keys). When a write-side option arrives it gets a WriteCommandOptions twin, so write actions never carry read-only members.

Definition at line 90 of file modbus_client.h.


The documentation for this class was generated from the following file: