open_ocpp 0.1.2

OCPP Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};

/// Heartbeat.req PDU sent by the Charge Point to the Central System.
pub struct HeartbeatReq {}

/// Heartbeat.conf PDU sent by the Central System to the Charge Point in response to a
/// [Hearbeat.req](crate::v16::messages::HeartbeatReq) PDU.
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct HeartbeatConf {
    /// This contains the current time of the Central System.
    pub current_time: String,
}