If by path you mean something like "/10.23AD234523/temperature" the answer
is simple:
You use "get" for the root path ("/" or actually just "") and build from
there.
The explanations for what devices support what properties, their format,
function, measurement units, etc is in the man files. That is
domain-specific information that the user must know indep[endently (though
we'endeavored to make function pretty transparent, and must data is returned
as straight ascii characters.)
Paul Alfille
On 1/31/07, Matthew Percival <[EMAIL PROTECTED]> wrote:
G'Day,
I have been trying to create a owlua using owcapi as a basis. As
far
as this is concerned, it has been a success --- I have an exact
equivalent to owcapi that can now be used from Lua. I just cannot make
any use of it! I can use the OW_init() and OW_finish() equivalent
functions without any trouble, but I cannot for the life of me work out
how to use put/get. In both cases I need to provide a path, and this is
where it feels like I am missing a function or two.
How does a person writing their Lua script know what path is
needed?
Presumably they would need to call a function that tells them the
relevant paths or something. For that matter, what devices are
available and what can we do with them?
I have been trying to work these things out from the source code,
but I
am just going around in circles. I have a C library written similar to
owcapi that allows people to access the 1-Wire net from Lua, but no idea
how to make any practical application of this. Can anyone direct me on
where to find the answers to this?
Thanks,
Matthew
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers