EasyManua.ls Logo

ControlByWeb X-600M - Page 144

ControlByWeb X-600M
158 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix H: Custom Web Pages X-600M Users Manual
beginning
SEEK_CUR – offset from current
file pointer
SEEK_END – offset from end of
file
getContents(filename, offset,
length)
filename Name of file to read from. If a
path is not give, then the file is
assumed to be on the internal
flash. If the path “/usb/” is given
then the file will searched for on
the external usb drive. If a path of
“/ram/” is given, the file will be
searched for on the internal ram
drive.
offset How many bytes from the
beginning of the file to start
reading from.
length How many bytes max to read
putContents(filename, data, flags) filename Name of file to write to. If a path
is not give, then the file is
assumed to be on the internal
flash. If the path “/usb/” is given
then the file will searched for on
the external usb drive. If a path of
“/ram/” is given, the file will be
searched for on the internal ram
drive.
data What to write to the file
flags If this is set to FILE_APPEND, the
data will be appended to the file.
getFileList() n/a This will return a list of all custom
files in the internal flash, external
usb drive, and internal ram drive
in JSON format.
$sqlite open(filename) filename Open a sqlite database file. If a
path is not give, then the file is
assumed to be on the internal
flash. If the path “/usb/” is given
then the file will searched for on
the external usb drive. If a path of
“/ram/” is given, the file will be
searched for on the internal ram
drive.
close() n/a Close the previously open
database file.
exec(query) query Execute a SQL query against the
previously open database file.
getJSONResult n/a Return the result of the last SQL
query in a JSON format.
Page 142 Xytronix Research & Design, Inc.

Table of Contents