> I take it you want to make your JVM talk to owserver?
Yes, but as for linking libraries in, that's more difficult as I don't
know what machine the java will be running on. Possibilities include PCs
with the full variety of operating systems, maybe within a browser,
small embedded things with a java vm like TINI
(http://www.maxim-ic.com/TINIplatform.cfm).
I appreciate that owhttp can get me the data, and it's great for a quick
check using a browser, and I may yet decide to go that route.
If I'm on a platform where I can link libraries then I rather prefer to
use owfs and access the 1wire as a file tree.
> I'll put some notes on the owserver protocol in the wiki
That'd be great, I can always refer to the source of owlib to try to
understand that dependency.
I am also currently trying to get a java vm (sablevm) working with
openwrt.
Paul Hilton
p.s. these may be idiot questions, but is there any way via the file
interface to make a temperature device do a conversion, but not wait
to return the result? Can I then read it later assuming it'll be in
the cache? Can it assert an alarm condition if warranted?
Paul Alfille wrote:
Interesting question.
I take it you want to make your JVM talk to owserver?
The standard way is to link owlib into your program (you can use SWIG and the
rather simple interface design of owcapi, owperl, owphp), or owpython (more
object oriented) or owtcl (doesn't use SWIG). This allows you to hook into
any arrangement of owservers and direct adapters.
There is SWIG support of java.
I'll put some notes on the owserver protocol in the wiki, but the design was
predicated on having owlib machinery on both sides of the connection. Indeed,
owserver is only about 200 lines of code (excluding comments).
Paul Alfille
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers