3 control commands, Control commands – Campbell Scientific CSI Web Server User Manual
Page 24

CSI Web Server
Datalogger
In these examples, you are directly accessing the datalogger at 192.168.12.55.
• To return all tables in a datalogger:
http://192.168.12.55/?command=browsesymbols&format=html
• To return all fields in the Public table:
http://192.168.4.14/?command=browsesymbols&uri=Public&format=html
• To return all the elements in the Flag array, which is part of the Public
table:
http://192.168.4.14/?command=browsesymbols&uri=Public.flag&format=
html
4.3 Control Commands
SetValueEx
The SetValueEx command is used to set a value in the datalogger. For the CSI
Web Server, a user name and password that has at least read/write rights must
be entered (or previously entered in the same session) or the command will fail.
Likewise, for direct datalogger access, if a .csipasswd file has been sent to the
datalogger, a user name and password must be entered (or previously entered
in the same session) or the command will fail. SetValueEx has the following
parts:
URI
The URI specifies the value that should be set in the format of
source_name:station_name.table_name.field_name.
Value
The new value to which the URI should be set.
Format
The Format is the file format for the result of the command.
Options are HTML, JSON, or XML. A result code and
description are returned.
Code Description
0
An unrecognized failure occurred
1 Success
2
The data-source connection failed (LoggerNet
data sources only)
3
LoggerNet logon failed (LoggerNet data
sources only)
4
Blocked by LoggerNet security (LoggerNet
data sources only)
18