Skip to content

Commit 75a29e0

Browse files
committed
fix(modbus): Apply changes/fixes after Pull Request review
1 parent 184f973 commit 75a29e0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

components/modbus_controller.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ Configuration variables:
7373

7474
- **max_cmd_retries** (*Optional*, integer): How many times a command will be retried if no response is received. It doesn't include the initial transmition. Defaults to 4.
7575

76-
- **server_courtesy_response** (*Optional*): A configuration block used to enable a courtesy response when acting as a Modbus server.
77-
If present in the configuration, the courtesy response feature is enabled.
78-
79-
- **register_count** (*Optional*, integer): The highest Modbus register address (inclusive) up to which undefined registers are allowed to be read and will be padded with a default value.
80-
Any read request that includes undefined registers within this range will return the value specified by ``register_value`` instead of triggering an exception.
81-
Defaults to ``65535``.
82-
83-
- **register_value** (*Optional*, integer): The 16-bit value (range: 0–65535) to return for undefined registers within the address range defined by ``register_count``.
76+
- **server_courtesy_response** (*Optional*): Configuration block to enable the courtesy response feature when the device is acting as a Modbus server.
77+
78+
- **enabled** (*Optional*, boolean): Whether to enable the courtesy response feature.
79+
Defaults to ``false``.
80+
- **register_last_address** (*Optional*, integer): The highest Modbus register address (inclusive) up to which undefined registers are allowed to be read and will be padded with a default value.
81+
Any read request that includes undefined registers within this range will return the value specified by ``register_value`` instead of triggering an exception.
82+
Defaults to ``65535``
83+
- **register_value** (*Optional*, integer): The 16-bit value (range: 0–65535) to return for undefined registers within the address range defined by ``register_last_address``.
8484
Defaults to ``0``.
8585

8686
- **server_registers** (*Optional*): A list of registers that are responded to when acting as a server.

0 commit comments

Comments
 (0)