OCPP-RS
Idiomatic implementation of OCPP 1.6 protocol
- Full implementation of OCPP 1.6 Protocol
- Includes packet parsing
- Fuzzed tested (please read the comment on the call_result fuzzing)
- Inspired by a python ocpp library
Example
Receiving a payload from a client:
use ;
use ;
// Example incoming message
let incoming_text = "[2, \"19223201\", \"BootNotification\", { \"chargePointVendor\": \"VendorX\", \"chargePointModel\": \"SingleSocketCharger\" }]";
let incoming_message = to_message;
if let Ok = incoming_message
//! Sending a payload to a client:
use StartTransaction;
use ;
use IdTagInfo;
use ChargePointStatus;
use Message;
let response = CallResult;
//!```