SendData

SendData 1:

This method is called once to send data to the broker.

Syntax

METHOD SendData : BOOL
VAR_INPUT
    pMachineStruct : PVOID;
    nStructSize    : UINT;
END_VAR

SendData 2: Return value

Name

Type

Description

SendData

BOOL

The method returns the return value TRUE if the call was successful.

SendData 3: Inputs

Name

Type

Description

pMachineStruct

PVOID

Address for the structure in which the device variables are declared.

nStructSize

UINT

Size of the structure specified in pMachineStruct.

Possible errors are output at the outputs bError and hrErrorCode of the function block instance.