FB_IotHttpAwsSigV4HeaderFieldMap

FB_IotHttpAwsSigV4HeaderFieldMap 1:

This function block enables signing of a header with AWS Signature Version 4 (see AWS Signature Version 4).

Syntax

Definition:

FUNCTION BLOCK FB_IotHttpAwsSig4HeaderFieldMap EXTENDS FB_IotHttpHeaderFieldMap
VAR_OUTPUT
    bError      : BOOL;
    hrErrorCode : HRESULT;
END_VAR

FB_IotHttpAwsSigV4HeaderFieldMap 2:Outputs

Name

Type

Description

bError

BOOL

Becomes TRUE when 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_IotHttpAwsSigV4HeaderFieldMap 3: Methods

Name

Description

AddField

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

SetParameter

Sets the required parameters on a header intended for requests to AWS services and signs it.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.12 or higher

IPC or CX (x86, x64, ARM)

Tc3_IotBase