Funcs
Funcs : Funcs
Deprecated - use connPing()
Deprecated - use connSyncCur()
Deprecated - use connSyncHis()
Read one Uri from an obixConn
Synchronously query a obix::History for its timestamp/value pairs
Write an object as identified by given uri
Invoke an obix:op operation as identified by given uri
(conn: Obj) => Future <admin, deprecated>
Deprecated - use connPing()
(points: Obj) => List <admin, deprecated>
Deprecated - use connSyncCur()
(points: Obj, span: Obj?) => Obj? <admin, deprecated>
Deprecated - use connSyncHis()
(conn: Obj, uri: Uri) => Grid <admin>
Read one Uri from an obixConn. The object is returned as a grid with the object's meta-data returned via grid.meta and each immediate child returned as a row in the grid. The tags used for grid meta and the columns are:
- href: meta.href is absolute uri of object, the href col is child's uri relative to meta.href
- name: obix
nameattribute - dis: obix
displayNameattribute - val: obix
valattribute unlessnullattribute is true - is: contract list
- icon: uri relative to meta.href of icon
You can read the icon via the tunnel URI:
{api}/obix/icon/{id}/{uri}
Side effects:
- performs blocking network IO
(conn: Obj, uri: Uri, span: Obj?) => Grid <admin>
Synchronously query a obix::History for its timestamp/value pairs.
Range may be any valid object used with his queries.
(conn: Obj, uri: Obj, arg: Obj?) => Grid <admin>
Write an object as identified by given uri. The following arg values are supported:
arg oBIX
--- -----
null <obj null='true'/>
"foo" <str val='foo'/>
true <bool val='true'/>
123 <real val='123.0'/>
123m <real val='123.0' unit='obix:units/meter'/>
`foo.txt` <uri val='foo.txt'/>
2012-03-06 <date val='2012-03-06'/>
23:15 <time val='23:15:00'/>
DateTime <abstime val='...' tz='...'/>
XML Str pass thru
Result object is transformed using same rules as obixReadObj.
(conn: Obj, uri: Obj, arg: Obj?) => Grid <admin>
Invoke an obix:op operation as identified by given uri.
See obixWriteObj for supported arg values and obixReadObj
for result object.