restReqFree (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

2.10.00


This function will release a REST request.

 

 

Input:

req : SYSHANDLE

A handle to the request.

 

 

Returns: INT

1


- Success

0


- Not supported

-1


- Invalid request

 

Declaration:

FUNCTION restReqFree : INT;
VAR_INPUT
  req    : ACCESS SYSHANDLE;
END_VAR;
 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM example;
VAR
  rc    : INT;
  req   : SYSHANDLE;
END_VAR
BEGIN
 
  rc := restReqCreate(req := req, url := "https://www.example.com");
  ...
  rc := restReqFree(req := req);
END;
END_PROGRAM;