Module tokio_common

Module tokio_common 

Source
Available on crate features tokio-rtu-sync or tokio-tcp-sync or tokio-rtu or tokio-tcp only.
Expand description

This module provides common data structures and error types for the tokio based clients.

It defines the Error enum, which encapsulates all possible communication errors, and the AllSettings and AllValues structs, which are used to return all the settings and values from the device in one go.

Structs§

AllSettings
A struct containing all the settings of the SDM72 meter.
AllValues
A struct containing all the measurement values of the SDM72 meter.

Enums§

Error
Represents all possible errors that can occur during Modbus communication.

Constants§

DATA_BITS
The number of data bits used for serial communication.

Functions§

serial_port_builder
Creates and configures a tokio_serial::SerialPortBuilder for RTU communication.