RecvReserveNow
With this method, an OCPP client receives a Reserve Now request from the corresponding OCPP server. To respond to the request, the method RespReserveNow must be called.
Syntax
METHOD RecvReserveNow : BOOL
VAR_OUTPUT
hMessageId : T_OCPP_MessageId;
nConnectorId : UDINT;
nExpiryDate : ULINT;
sIdTag : T_OCPP1_IdToken;
sParentIdTag : T_OCPP1_IdToken;
nReservationId : UDINT;
END_VAR
Return value
Name | Type | Description |
---|---|---|
RecvReserveNow | BOOL | The method returns the return value TRUE if the call was successful. A method call is also considered successfully completed in the event of an error. |
Outputs
Name | Type | Description |
---|---|---|
hMessageId | MessageId of the received message. | |
nConnectorId | UDINT | Contains the ID of the Connector to be reserved. |
nExpiryDate | ULINT | Date and time at which the reservation ends. |
sIdTag | ID tag for which the Connector is to be reserved. | |
sParentIdTag | Optional parent ID tag. | |
nReservationId | UDINT | Unique ID for the reservation. |
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.