FB_IotHttpHeaderFieldMap

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
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. |
Methods
Name | Description |
---|---|
Adds a header field to an instance of this function module. | |
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 |