Hi Marcus, Sorry I am late joining this thread, I am just catching up.
I would also like to see this functionality. I monitor a pressure switch and the easy and cheap way to do it seemed to be to use a DS1820 temperature sensor wired through the pressure switch. If I see the temperature sensor then the switch is made. This works fine if the switch is made when the program starts but if not it never sees it. Cheers Mick On Wed, 2010-08-11 at 13:28 +0200, Marcus Priesch wrote: > Hi Petr, > > > > To solve the problem, I have owfs mounted and I am reading the devices > > from its file structure right now. It looks it is a bit faster with > > the passive RS232 adapter. Because of that I can not provide feedback > > right now. > > > > But what you propose looks exactly what I wanted, when I was trying to > > write the code using the pyowfs. > > For devices, that are not connected to the bus permanently (like > > iButton for example), there is a need to reinit() the bus repeatedly, > > otherwise new devices are not discovered. > > yes, but i doubt owfs is doing this - and i expect libcapi and owfs to > behave the same in this respect - Paul, does this hold ?!?! > > imho it should definitely work with only one Connection (and libcapi) > instance ... have you disabled the cache ?!?! > > > I guess the finish() is not necessary to use, when new instance of the > > root object is not created repeatedly over and over again. > > > > Anyway, IMHO, the new instance of the same object (root) has to kill > > (delete) the old object (Python works this way) and, because of that, > > all connections to /dev/ttySx have to be closed. > > yes, but the only consitent way to do this is to call the finish > directly before you create the new instance. > > having the finish call in python's __del__ does not determine when it > actually gets called - it depends on python's garbage collector and is > bad practice afaik ... ,) > > > +1 for all new proposed methods anyway > > ok, if there comes another +1 i will implement it ;) > > regards, > marcus. > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers