I am confused! From tests I did a while back I was sure that if I removed a sensor and then replaced it, it would pick up again, but I I added a new sensor after the code had started it would not pick it up.
I have just retested this and it does pick up a new sensor. The thing that puzzles me it that it takes a while before it sees the new sensor, even with caching turned off. I have a network with 4 sensors and python code just looping around reading them, around 0.5 to 1.0 seconds per loop. I started it with 3 sensors connected and it has took 75 loops before it saw the 4th sensor. If I set cache on it runs much faster, so many more loops but a similar time before it sees the new sensor. Also I am not convinced that the use_cache(0) actually does what I expect. The 4 sensors are all on my desk, so about the same temperature. I ran the code and heated one of the sensors. It started reading 25.375 and continued for 30 loops of the code, then loop 31 it changed to 32.5625. With use_cache set to 0 I would expect it to rise slightly each loop. Is that not how it should work? It appears that use_cache(0) introduces a delay but otherwise does not change the operation. Thanks Mick On Mon, 2010-08-23 at 06:52 -0400, Paul Alfille wrote: > > > On Mon, Aug 23, 2010 at 2:43 AM, Marcus Priesch > <mar...@priesch.priv.at> wrote: > > > > OWFS definitely shows new devices that appear during use. > so it should also work for libcapi ... ?!? > > > Yes. (libcapi IS essentially libow). > > > you mean pyowfs i suggest ?!? > Sorry, yes. > > > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers