GetContent

GetContent 1:

This method reads the HTTP response and saves it into a variable. To be able to read the content from an HTTP response, the bBusy output of the function block FB_IotHttpRequest must return FALSE.

Syntax

METHOD GetContent : BOOL
VAR_INPUT
    pContent            : PVOID;
    nContentSize        : UDINT;
    bSetNullTermination : BOOL;
END_VAR

GetContent 2: Return value

Name

Type

Description

GetContent

BOOL

Returns TRUE if the method call was successful.

GetContent 3: Inputs

Name

Type

Description

pContent

PVOID

Pointer to data memory where the read data should be stored.

nContentSize

UDINT

Size of content payload.

bSetNullTermination

BOOL

Specifies whether to read the payload with or without null termination.