X-600M Users Manual
Appendix H: Custom Web Pages
dtEnd, freq, interval, byday,
monthlyRepeatType, untilType,
dtUntil, count, callback)
id
.
Parameters are the same as those for the add
function.
Note:
Settings must be committed for this change
to take effect. See db.commitSettings() below.
del(id, callback)
Delete the event with the specified
id
.
Note:
Settings must be committed for this change
to take effect. See db.commitSettings() below.
condEvnt
add(name, desc, expression,
eventGroupID, callback)
Add a
conditional event with a lua expression.
Note:
Settings must be committed for this change
to take effect. See db.commitSettings() below.
update(id, name, desc,
expression, callback)
Update a conditionalevent with the specified
id
.
Note:
Settings must be committed for this change
to take effect. See db.commitSettings() below.
del(id, callback)
Delete the conditional event with the specified
id
.
Note:
Settings must be committed for this change
to take effect. See db.commitSettings() below.
currentPage
refreshIOFields(fileName,
period, contentDivName)
Refresh the I/O and registers found in the custom
web page. See example above.
db
commitSettings(callback)
Attempt to commit the settings to non-volatile
memory.
file
read(filename, offset, length,
callback)
Read
length
number of bytes from a file starting at
offset
bytes. Return the result as the first
parameter in the callback function. If the
filename
does not contain a path, it will be assumed that
the file resides on the internal flash. Otherwise,
valid paths are “/usb/” and “/ram/”, which will
search for the file on the external usb drive, and
the internal ram drive respectively.
write(filename, data, offset,
whence, length, callback)
Write
length
number of bytes to a file starting at
offset
bytes either from the beginning of the file
(whence=SEEK_SET) or end of the file
(whence=SEEK_END). Return the result as the
first parameter in the callback function. If the
filename
does not contain a path, it will be
assumed that the file resides on the internal flash.
Otherwise, valid paths are “/usb/” and “/ram/”,
which will search for the file on the external usb
drive, and the internal ram drive respectively.
sqlite
exec(filename, query, callback) Execute SQL
query
against the SQLite database
file specified by
filename
and return the result as
the first parameter in the
callback
function. If the
filename
does not contain a path, it will be
assumed that the file resides on the internal flash.
Xytronix Research & Design, Inc.
Page 147
Содержание 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...