restRespBodySetJSON (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

2.10.00


This function will set the body content of the response to the provided JSON structure.

 

Input:

resp : SYSHANDLE

A handle to the response.

 

json : SYSHANDLE

The JSON structure to use for the body content.

 

 

Returns: INT

1


- Success

0


- Not supported

-1


- Invalid response

-3


- Failed to set body

-4


- Invalid JSON handle.

 

 

Declaration:

FUNCTION restRespBodySetJSON: INT;
VAR_INPUT
  resp           : SYSHANDLE;
  json           : SYSHANDLE;
END_VAR;

 

 

Example:

Please see the "Examples - REST Basic Authentication Example"