AddField

AddField 1:

This method adds an additional header field to an instance of the function block FB_IotHttpHeaderFieldMap.

Syntax

METHOD AddField : BOOL
VAR_IN_OUT CONSTANT
    sField       : STRING;
    sValue       : STRING;
END_VAR
VAR_INPUT
    bAppendValue : BOOL;
END_VAR

AddField 2: Return value

Name

Type

Description

AddField

BOOL

Returns TRUE if the method call was successful.

AddField 3: Inputs

Name

Type

Description

bAppendValue

BOOL

Replaces the existing header field value (FALSE) or appends the value to the existing value (TRUE).

AddField 4: Inputs/outputs

Name

Type

Description

sField

STRING

Name of the field that is added to the header of the HTTP request.

sValue

STRING

Value of the added header field.