◆ data_transfer_req() [1/2]
| std::optional< DataTransferResponse > ocpp::v2::DataTransfer::data_transfer_req |
( |
const CiString< 255 > & |
vendorId, |
|
|
const std::optional< CiString< 50 > > & |
messageId, |
|
|
const std::optional< json > & |
data |
|
) |
| |
|
overridevirtual |
◆ data_transfer_req() [2/2]
Sends a DataTransfer.req message to the CSMS using the given request.
- Parameters
-
| request | message shall be sent to the CSMS |
- Returns
- DataTransferResponse containing the result from CSMS. In case no response is received from the CSMS because the message timed out or the charging station is offline, std::nullopt is returned
Implements ocpp::v2::DataTransferInterface.
◆ handle_message()
| void ocpp::v2::DataTransfer::handle_message |
( |
const EnhancedMessage< MessageType > & |
message | ) |
|
|
overridevirtual |
Handles the given message from the CSMS. This includes dispatching a CALLRESULT as a response to the incoming message .
- Parameters
-
Implements ocpp::v2::MessageHandlerInterface.
The documentation for this class was generated from the following files:
- include/ocpp/v2/functional_blocks/data_transfer.hpp
- lib/ocpp/v2/functional_blocks/data_transfer.cpp