FB_IotHttpHeaderFieldMap

FB_IotHttpHeaderFieldMap 1:

This function block offers the option of adding additional header fields to an HTTP request. To do this, the AddField method must be called on this function block. The function block must then be forwarded to the HTTP command that is sent to the server.

Syntax

Definition:

FUNCTION_BLOCK FB_IotHttpHeaderFieldMap
VAR_OUTPUT
    bError      : BOOL;
    hrErrorCode : HRESULT;
END_VAR

FB_IotHttpHeaderFieldMap 2: Outputs

Name

Type

Description

bError

BOOL

Becomes TRUE as soon as an error situation occurs.

hrErrorCode

HRESULT

Returns an ADS return code. An explanation of the possible ADS return codes can be found in the Appendix.

FB_IotHttpHeaderFieldMap 3: Methods

Name

Description

AddField

Adds a header field to an instance of this function module.

FindField

Searches for a specific header field in an instance of the function block FB_IotHttpHeaderFieldMap.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.7 or higher

IPC or CX (x86, x64, ARM)

Tc3_IotBase