ocpp/v2_0_1/datatype/network_connection_profile

OCPP 2.0.1 NetworkConnectionProfile data type (schema NetworkConnectionProfileType).

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

Types

The NetworkConnectionProfile defines the functional and technical parameters of a communication link.

FieldTypeReqDescription
apnApn
custom_dataCustomData
message_timeoutIntDuration in seconds before a message send by the Charging Station via this network connection times-out. The best setting depends on the underlying network and response times of the CSMS. If you are looking for a some guideline: use 30 seconds as a starting point.
ocpp_csms_urlStringURL of the CSMS(s) that this Charging Station communicates with. (max 512 chars)
ocpp_interfaceOcppInterface
ocpp_transportOcppTransport
ocpp_versionOcppVersion
security_profileIntThis field specifies the security profile used when connecting to the CSMS with this NetworkConnectionProfile.
vpnVpnType

Schema: NetworkConnectionProfileType · Communication_Function · urn:x-oca:ocpp:uid:2:233304

pub type NetworkConnectionProfile {
  NetworkConnectionProfile(
    apn: option.Option(apn.Apn),
    custom_data: option.Option(custom_data.CustomData),
    message_timeout: Int,
    ocpp_csms_url: String,
    ocpp_interface: ocpp_interface.OcppInterface,
    ocpp_transport: ocpp_transport.OcppTransport,
    ocpp_version: ocpp_version.OcppVersion,
    security_profile: Int,
    vpn: option.Option(vpn_type.VpnType),
  )
}

Constructors

Values

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

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

pub fn new(
  message_timeout message_timeout: Int,
  ocpp_csms_url ocpp_csms_url: String,
  ocpp_interface ocpp_interface: ocpp_interface.OcppInterface,
  ocpp_transport ocpp_transport: ocpp_transport.OcppTransport,
  ocpp_version ocpp_version: ocpp_version.OcppVersion,
  security_profile security_profile: Int,
) -> NetworkConnectionProfile

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

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

Encode a NetworkConnectionProfile to its OCPP-J JSON object.

Search Document