ocpp/v2_1/datatype/firmware

OCPP 2.1 Firmware data type (schema FirmwareType).

to_json/decoder map to/from its OCPP-J JSON object; new (when present) builds a value from the required fields only.

Types

Represents a copy of the firmware that can be loaded/updated on the Charging Station.

FieldTypeReqDescription
custom_dataCustomData
install_date_timeDateTimeDate and time at which the firmware shall be installed.
locationStringURI defining the origin of the firmware. (max 2000 chars)
retrieve_date_timeDateTimeDate and time at which the firmware shall be retrieved.
signatureStringBase64 encoded firmware signature. (max 800 chars)
signing_certificateStringCertificate with which the firmware was signed. PEM encoded X.509 certificate. (max 5500 chars)

Schema: FirmwareType

pub type Firmware {
  Firmware(
    custom_data: option.Option(custom_data.CustomData),
    install_date_time: option.Option(timestamp.Timestamp),
    location: String,
    retrieve_date_time: timestamp.Timestamp,
    signature: option.Option(String),
    signing_certificate: option.Option(String),
  )
}

Constructors

Values

pub fn decoder() -> decode.Decoder(Firmware)

Decode a Firmware from its OCPP-J JSON object, enforcing schema constraints.

pub fn new(
  location location: String,
  retrieve_date_time retrieve_date_time: timestamp.Timestamp,
) -> Firmware

Construct a Firmware from its required fields, with every optional field set to None.

pub fn to_json(value: Firmware) -> json.Json

Encode a Firmware to its OCPP-J JSON object.

Search Document