Expand description
§dalybms_lib
This crate provides a library for interacting with Daly BMS (Battery Management System) devices. It offers both synchronous and asynchronous clients for communication.
§Features
This crate uses a feature-based system to keep dependencies minimal. You need to enable the client you want to use.
default: Enablesbin-dependencies, which is intended for compiling thedalybmscommand-line tool and pulls inserialportandserde.
§Client Features
serialport: Enables the synchronous client using theserialportcrate.tokio-serial-async: Enables the asynchronous client usingtokioandtokio-serial.
§Utility Features
serde: Enablesserdesupport for serializing/deserializing data structures.bin-dependencies: Enables all features required by thedalybmsbinary executable (currentlyserialportandserde).
Modules§
- protocol
- Defines the communication protocol for Daly BMS.
- serialport
serialport - Synchronous client for Daly BMS communication. Provides a synchronous client for interacting with a Daly BMS (Battery Management System) using a serial port connection.
- tokio_
serial_ async tokio-serial-async - Asynchronous client for Daly BMS communication.
Provides an asynchronous client for interacting with a Daly BMS (Battery Management System)
using Tokio and the
tokio-serialcrate for serial communication.
Enums§
- Error
- Represents the possible errors that can occur in the
dalybms_lib.