restServerStart (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

2.10.00


This function will start the REST server.

To stop the server, call restServerStop.

 

 

Input:

handle : SYSHANDLE

A handle to the server to start.

 

 

Returns: INT

1


- Success

0


- Not supported

-1


- Invalid server.

-3


- Failed to start server.

-4


- Invalid parameter, certificate or key might not work.

-12


- Failed to bind to interface, interface might not be ready. When binding to WLAN, it might be necessary to wait for the network to be connected before starting the server.

-26


- Failed to start server, port might already be in use.

-27


- Server is already running.

 

Declaration:

FUNCTION restServerStart : INT;
VAR_INPUT
  handle    : SYSHANDLE;
END_VAR;

 

 

Example:

Please see the "Examples - REST Example"