restRespBodyGetString (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

2.10.00


This function will read the contents of the body of the response as a string.

 

Input:

resp : SYSHANDLE

A handle to the response.

 

 

Output:

str : STRING

The body contents.

 

 

Returns: INT

1


- Success

0


- Not supported

-1


- Invalid response

-7


- The body is too large to store in a string.

 

Declaration:

FUNCTION restRespBodyGetString : INT;
VAR_INPUT
  resp           : SYSHANDLE;
  str            : ACCESS STRING;
END_VAR;

 

 

Example:

Please see the "Examples - REST Example"