Crates.io | ocpp-client |
lib.rs | ocpp-client |
version | |
source | src |
created_at | 2024-07-30 14:14:05.696511 |
updated_at | 2024-12-06 11:32:15.371002 |
description | OCPP Client Implementation. Use this library to implement an OCPP charge point |
homepage | |
repository | https://github.com/flowionab/ocpp-client |
max_upload_size | |
id | 1319835 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
ocpp-client
is a Rust library that provides an OCPP (Open Charge Point Protocol) client implementation. This library enables developers to integrate with central system (CSMS) that use the OCPP protocol, allowing for seamless communication and efficient.
Add the following to your Cargo.toml
:
[dependencies]
ocpp-client = "0.1"
Here's a simple example to get you started:
use ocpp_client::connect;
#[tokio::main]
async fn main() {
let client = connect("wss://my-csms.com/CHARGER_IDENTITY").await?;
match client {
OCPP1_6(client) => {
// Do 1.6 specific operations
},
OCPP2_0_1(client) => {
// Do 2.0.1 specific operations
},
}
}
The full documentation is available on docs.rs.
Check out the examples directory for more usage examples.
Contributions are welcome! Please see the CONTRIBUTING.md for more details.
This project is licensed under the MIT License. See the LICENSE file for details.