04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 8. Operation<br />

<br />

<br />

<br />

XML Response<br />

When xml is entered in the SetValueEx format parameter, the response will be<br />

CSIXML with a SetValueExResponse root element name.. Following is an<br />

example response:<br />

<br />

JSON Response<br />

When json is entered in the SetValueEx format parameter, the response will be<br />

CSIJSON. Following is an example response:<br />

{<br />

}<br />

"outcome": outcome-code,<br />

"description": description<br />

8.6.3.6 Clock Functions<br />

Clock functions allow a web client to monitor and set the host <strong>CR1000</strong> real time<br />

clock. Read the Time Syntax (p. 375) section for more information.<br />

8.6.3.6.1 ClockSet Command<br />

ClockSet allows a web client to set the <strong>CR1000</strong> real time clock. ClockSet takes<br />

the form:<br />

http://ip_address/command=ClockSet&format=html&time=YYYY-MM-<br />

DDTHH:MM:SS.MS<br />

ClockSet requires a minimum .csipasswd access level of 1 (all access allowed).<br />

Table 97. ClockSet API Command Parameters<br />

uri<br />

format<br />

time<br />

If this parameter is excluded, or if it is set to "datalogger"<br />

(uri=dl) or an empty string (uri=), the command is sent to the<br />

<strong>CR1000</strong> web server. 1<br />

Specifies the format of the response. The values html, json, and<br />

xml are valid. If this parameter is omitted, or if the value is<br />

html, empty, or invalid, the response is HTML.<br />

Specifies the time to which the <strong>CR1000</strong> real-time clock is set.<br />

This value must conform to the format described for input time<br />

stamps in the Time Syntax (p. 375) section.<br />

1 optionally specifies the URI for the LoggerNet source station to be set<br />

Example:<br />

http://192.168.24.106/command=ClockSet&format=html&time=2012-9-<br />

14T15:30:00.000<br />

Response: sets the host <strong>CR1000</strong> real time clock to 3:30 PM 14<br />

September 2012.<br />

387

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!