Skip to main content

Crate dalybms_lib

Crate dalybms_lib 

Source
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: Enables bin-dependencies, which is intended for compiling the dalybms command-line tool and pulls in serialport and serde.

§Client Features

  • serialport: Enables the synchronous client using the serialport crate.
  • tokio-serial-async: Enables the asynchronous client using tokio and tokio-serial.

§Utility Features

  • serde: Enables serde support for serializing/deserializing data structures.
  • bin-dependencies: Enables all features required by the dalybms binary executable (currently serialport and serde).

Modules§

protocol
Defines the communication protocol for Daly BMS.
serialportserialport
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_asynctokio-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-serial crate for serial communication.

Enums§

Error
Represents the possible errors that can occur in the dalybms_lib.