Expand description
This module contains all client specific code.
Modules§
- tokio_
modbus - This module contains the actual communication methods via
tokio-modbus.
Structs§
- Async
Client - Async client
- Async
Device - Client structure for a discovered device
- Config
- Client configuration
- Discovery
Result - The result of a SunSpec model discovery.
- Unknown
Model - For every discovered but unknown model to this library this structure is returned.
Enums§
- Discovery
Error - This error is returned when an error occurs during model discovery.
- Modbus
Error - This error is returned if a communication fails because of a timeout or underlying modbus error.
- Read
Model Error - This error is returned if there was an error loading the requested model.
- Read
Point Error - This error is returned if there was an error while reading data from a point.
- Write
Point Error - This error is returned if there was an error while writing data to a point.
Constants§
- DEFAULT_
MAX_ READ_ LENGTH - Modbus defines that a maximum of 125 registers can be read in a single request. See 6.4, Page 16: See: https://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf
- DEFAULT_
MAX_ WRITE_ LENGTH - Modbus defines that a maximum 123 registers can be written in a single request. See 6.12, Page 30: https://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf
- DEFAULT_
READ_ TIMEOUT - Default timeout when reading registers
- DEFAULT_
WRITE_ TIMEOUT - Default timeout when reading registers
Traits§
- Async
Modbus Client - Async Modbus client