Init
This method is called when the function block is initialized in the FB_Init method and specifies the parameters of the WebSockets server. If the connection parameters are to be changed afterwards, this method can be called again while the application is running.
Syntax
METHOD Init : BOOL
VAR_INPUT
sIdent : T_OCPP_Identity;
sAuthHash : T_OCPP_Hash;
fbServer : REFERENCE TO FB_OCPP1_Server;
END_VAR
Return value
Name | Type | Description |
---|---|---|
Init | 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. |
Inputs
Name | Type | Description |
---|---|---|
sIdent | Identity of the OCPP client to be connected. | |
sAuthHash | Hash value for the respective OCPP client. The calculation is explained at Hash calculation. | |
fbServer | REFERENCE TO FB_OCPP1_Server | Instance of the OCPP server for which the station should be created. |