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 />

8.6.3.4.2 DataQuery Command<br />

is_read_only="false"<br />

can_expand="true"/><br />

<br />

JSON Response<br />

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

be formated as CSIJSON (p. 68). Following is an example response.<br />

{<br />

"symbols": [<br />

{"name": "Status","uri": "dl:Status","type": 6,"is_enabled":<br />

true,"is_read_only": false,"can_expand": true},<br />

{"name": "MainData","uri": "dl:MainData","type":<br />

6,"is_enabled": true,"is_read_only": false,"can_expand": true},<br />

{"name": "BallastTank1","uri": "dl:BallastTank1","type":<br />

6,"is_enabled": true,"is_read_only": false,"can_expand": true},<br />

{"name": "BallastTank2","uri": "dl:BallastTank2","type":<br />

6,"is_enabled": true,"is_read_only": false,"can_expand": true},<br />

{"name": "BallastTank3","uri": "dl:BallastTank3","type":<br />

6,"is_enabled": true,"is_read_only": false,"can_expand": true},<br />

{"name": "BallastTank4","uri": "dl:BallastTank4","type":<br />

6,"is_enabled": true,"is_read_only": false,"can_expand": true},<br />

{"name": "BallastLine","uri": "dl:BallastLine","type":<br />

6,"is_enabled": true,"is_read_only": false,"can_expand": true},<br />

{"name": "Public","uri": "dl:Public","type": 6,"is_enabled":<br />

true,"is_read_only": false,"can_expand": true}<br />

]<br />

}<br />

DataQuery allows a web client to poll the <strong>CR1000</strong> for data. DataQuery<br />

typically takes the form:<br />

http://ip_address/command=DataQuery&uri=dl:tablename.fieldname&<br />

format=_&mode=_&p1=_&p2=_<br />

DataQuery requires a minimum .csipasswd access level of 3 (read-only).<br />

379

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

Saved successfully!

Ooh no, something went wrong!