SendMessageEx2
This method sends a message.
Syntax
METHOD SendMessageEx2 : HRESULT
VAR_INPUT
stEventEntry : TcEventEntry;
ipSourceInfo : I_TcSourceInfo := 0;
nTimeStamp : ULINT := 0;
ipArguments : I_TcArguments := 0
END_VAR
VAR_IN_OUT CONSTANT
sJsonAttribute : STRING;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
stEventEntry | TcEventEntry | Event definition |
ipSourceInfo | I_TcSourceInfo | Interface pointer to the source information. This information is optional. An instance of the type FB_TcSourceInfo can be specified here. If nothing (NULL) is transferred, standard source information is generated. |
nTimeStamp | ULINT | 0: Current timestamp is used. > 0: External timestamp in 100 nanoseconds since January 1st, 1601 (UTC) |
ipArguments | I_TcArguments | Interface pointer to arguments of the event. This information is optional. An instance of the type FB_TcArguments can be specified here. |
sJsonAttribute | STRING | String as a Json representation, which is transmitted in addition to the event text. |
Return values
Name | Type | Description |
---|---|---|
SendMessageEx2 | HRESULT | Returns S_OK if the method call was successful, otherwise an HRESULT as the error code. |