jwtHeaderGetDint (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

All

Firmware version:

1.70.00


jwtHeaderGetDint reads an integer header from the JWT object.

 

Input:

jwt : SYSHANDLE

A handle to the JWT object.

 

name : STRING

The name of the header to read.

 

Output:

value : DINT

The value of the header.

 

 

 

Returns: INT

1

- Success

0

- Function is not supported.

-1

- Invalid name.

-2

- Could not find JWT object.

-4

- Could not find header.

 

 

Declaration:

FUNCTION jwtHeaderGetDint : INT;
VAR_INPUT
  jwt   : SYSHANDLE;
  name  : STRING;
  value : ACCESS DINT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  rc  : INT;
  val : DINT;
  jwt : SYSHANDLE;
END_VAR;
 
BEGIN
  ...
  // Read header
  rc := jwtHeaderGetDint(jwt := jwt, name := "name", value := val);
  ...
END;
 
END_PROGRAM;