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.
| Field | Type | Req | Description |
|---|---|---|---|
apn | Apn | — | |
custom_data | CustomData | — | |
message_timeout | Int | ✓ | Duration 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_url | String | ✓ | URL of the CSMS(s) that this Charging Station communicates with. (max 512 chars) |
ocpp_interface | OcppInterface | ✓ | |
ocpp_transport | OcppTransport | ✓ | |
ocpp_version | OcppVersion | ✓ | |
security_profile | Int | ✓ | This field specifies the security profile used when connecting to the CSMS with this NetworkConnectionProfile. |
vpn | VpnType | — |
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
-
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), )
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.