mirror of https://github.com/Nonannet/pyhoff.git
Missing docstrings added
This commit is contained in:
parent
418bcb59e8
commit
e160fd2162
|
@ -137,9 +137,10 @@ class AnalogInputTerminal(BusTerminal):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
channel: The channel number (1 based index) to read from.
|
channel: The channel number (1 based index) to read from.
|
||||||
|
error_value: Value that is returned in case the modbus read command fails.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The read word value.
|
The read word value or provided error_value if read failed.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
Exception: If the word offset or count is out of range.
|
Exception: If the word offset or count is out of range.
|
||||||
|
@ -174,6 +175,7 @@ class AnalogOutputTerminal(BusTerminal):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
channel: The channel number (1 based index) to read from.
|
channel: The channel number (1 based index) to read from.
|
||||||
|
error_value: Value that is returned in case the modbus read command fails.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The read word value or provided error_value if read failed.
|
The read word value or provided error_value if read failed.
|
||||||
|
|
Loading…
Reference in New Issue