PollRequest
This method must be called in order to receive incoming requests from the OCPP server. The outputs of the method return both the message ID of the received message and the information about which OCPP request it is.
Syntax
METHOD PollRequest : BOOL
VAR_OUTPUT
eAction : E_OCPP1_Action;
hMessageId : T_OCPP_MessageId;
END_VAR
Return value
Name | Type | Description |
---|---|---|
PollRequest | 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 |
---|---|---|
eAction | Type of OCPP request received from the server. | |
hMessageId | MessageId of the received message. |
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.