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.
Содержание X-600M
Страница 1: ...X 600MTitle Page Goes Here...
Страница 6: ...X 600M Users Manual Page 4 Xytronix Research Design Inc...
Страница 99: ...X 600M Users Manual Setup Pages Xytronix Research Design Inc Page 97...
Страница 116: ...Appendix B Installing New Firmware X 600M Users Manual Page 114 Xytronix Research Design Inc...