G'Day,
> 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.
I had actually tried that before, curious to what would happen rather
than expecting it to be the answer to my question. That it did not
accept "/" meant nothing to me before, but has now allowed me to spot a
bug in my code. It now accepts "/", but I am getting a segmentation
fault in owlib instead. I have tried to trace it as best I can, but can
only get as far as the `BUS_select(pn2)' call in FS_realdir()
(ow_dir.c:459). I am not sure if it is crashing on that line, or within
the function it calls, but I cannot trace any further.
I believe this is where it calls the adaptor-specific X_select()
function. It should be calling OMAP_select() for me, but I do not
believe it is. I am calling `owopt('o', optarg, opt_server)' in my
init() function, which should set it to the OMAP adaptor. Unless there
is another step I have missed along the way.
-- Matthew
> 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
> [email protected]
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers