Administration functions

The administration functions include a debug, echo, and a sleep function.

FPWEB_DEBUG

This function enables or disables the logging of debugging information. The debugging information is stored in the message log file.

Call

FPWEB_DEBUG(mode);

Result

No result

Example

FPWEB_DEBUG(1);

Parameters

mode

The type of debugging that is performed

  • 0: Debugging disabled
  • 1: Normal debugging
  • 2: Advanced debugging
  • 3: Full debugging (beware of the flood of messages that may be generated)

To read the message file, go to https://<FP-I4C-IP>/machine_config/#/logs and download the archive. The message file is stored in this archive.

To see the message within an SSH session, simply enter the following code: tail -f /var/log/messages | grep pew

FPWEB_ECHO

This function writes a message to the message log file.

Call

FPWEB_ECHO(constant string [,value]);

Result

No result

Example

FPWEB_ECHO(“My value = “, DT[1]);

Parameters

constant string

A constant text in quotation marks

value

An optional value

To read the message file, go to https://<FP-I4C-IP>/machine_config/#/logs and download the archive. The message file is stored in this archive.

To see the message within an SSH session, simply enter the following code: tail -f /var/log/messages | grep pew

FPWEB_SLEEP

This function pauses script processing for the specified number of seconds. It is used to minimize CPU usage of the FP-I4C unit and to slow down the processing speed.

Call

FPWEB_SLEEP(duration);

Result

No result

Example

FPWEB_ SLEEP(500); #value in s

Parameters

duration

The duration of the script processing pause

0–86400 [s]