The administration functions include a debug, echo, and a sleep function.
This function enables or disables the logging of debugging information. The debugging information is stored in the message log file.
FPWEB_DEBUG(mode);
No result
FPWEB_DEBUG(1);
The type of debugging that is performed
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
This function writes a message to the message log file.
FPWEB_ECHO(constant string [,value]);
No result
FPWEB_ECHO(“My value = “, DT[1]);
A constant text in quotation marks
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
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.
FPWEB_SLEEP(duration);
No result
FPWEB_ SLEEP(500); #value in s
The duration of the script processing pause
0–86400 [s]