beautypg.com

2 dataquery command – Campbell Scientific CR3000 Micrologger User Manual

Page 384

background image

Section 8. Operation

384 

 

 

is_read_only="false"
can_expand="true"/> name="Public"
uri="dl:Public"
type="6"
is_enabled="true"
is_read_only="false"
can_expand="true"/>

JSON Response

When

json

is entered in the BrowseSymbols

format

parameter, the response will

be formated as CSIJSON

(p. 68).

Following is an example response.

{
"symbols": [
{"name": "Status","uri": "dl:Status","type": 6,"is_enabled":
true,"is_read_only": false,"can_expand": true},
{"name": "MainData","uri": "dl:MainData","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastTank1","uri": "dl:BallastTank1","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastTank2","uri": "dl:BallastTank2","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastTank3","uri": "dl:BallastTank3","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastTank4","uri": "dl:BallastTank4","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastLine","uri": "dl:BallastLine","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "Public","uri": "dl:Public","type": 6,"is_enabled":
true,"is_read_only": false,"can_expand": true}
]
}

8.6.3.4.2 DataQuery Command

DataQuery allows a web client to poll the CR3000 for data. DataQuery
typically takes the form:

http://ip_address/?command=DataQuery&uri=dl:tablename.fieldname&
format=_&mode=_&p1=_&p2=_

DataQuery requires a minimum .csipasswd access level of 3 (read-only

)

.