Hi, I'm looking to update the jowfsclient library with both fixes and new features. But I just ran into some problems.
My user story is pretty much this: I want a generic way of reading the structure information from any type of address (including aliases). So, for example: Given /10.AC8CB6110800/temperature I want to read information from /structure/10/temperature But also: Given /MyAlias/vis I want to read information from /structure/26/vis (if MyAlias is of family 26). Or even messier: Given /MyOtherAlias/errata/die I want to read information from /structure/10/errata/die (or whatever family MyOtherAlias is of). Or worst of all?: Given /MyThirdAlias/main/FF.940400110100/backlight I want to read information from /structure/FF/backlight Okay, so I have two problems as it seems. 1. How do I get the family code from the last device id in a full address. 2. How do I find the "property path" following the the last device id in a full address (this is perhaps straightforward if 1. is solved). My most recent approach was this (illustrated with an example): Given the address /MyAlias/vis, check if /MyAlias/vis/family exists (with the PRESENCE message type). If not, pull vis from the address and check if /MyAlias/family exists. If yes, we have found the last device id = /MyAlias with family code accessible through /MyAlias/family and the property path /vis The issue with this approach (which I just noticed) is that owserver claims that /MyAlias/vis/id is present. It's even possible to read from this address (and by that reading the vis property). So, is there any other way of solving my user story? The cleaner the better of course. The issue is really about finding the root path to a device in an address. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers