jwtCreate (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

All

Firmware version:

1.70.00


jwtCreate creates a new, empty JWT object.

 

When the JWT object is no longer needed, it must be released using jwtFree.

 

Input:

None

 

Output:

jwt : SYSHANDLE

A handle to the JWT object.

 

Returns: INT

1

- Success

0

- Function is not supported.

-2

- Could not allocate JWT, there may be too many in use.

-99

- Failed to create JWT.

 

 

Declaration:

FUNCTION jwtCreate : INT;
VAR_INPUT
  jwt   : ACCESS SYSHANDLE;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  rc  : INT;
  jwt : SYSHANDLE;
END_VAR;
 
BEGIN
  ...
  // Create JWT
  rc := jwtCreate(jwt := jwt);
  ...
END;
 
END_PROGRAM;