|
From: Paul A. <pal...@ea...> - 2003-08-25 13:13:05
|
On Sat, 2003-08-23 at 18:46, Nicolas Huillard wrote: > Vadim Tkachenko wrote: > >>* will it need alarms or detection of new devices (like iButton arrival) > > > > Definitely. And departure, too. For me, this is a mission critical thing: If > > the switches or sensors are gone, that's really bad. > > I agree. It's critical that devices attached to the network remain attached. > I was referencing iButton comming temporarily (like ID chips), that the > software must intercept to act accordingly (ie. open the door). > I don't know if OWFS has a mechanism to allow such detection of unknown > devices. > > NH > Can either of you expand on this? Why do you want arrival and departure notices? Are you scanning for ibutton contacts? OWFS doesn't care if devices come or go. The current implementation is almost entirely stateless. It only knows that a device might exist because it's ID is the filename. It will only read existing devices. There should be know ghosts, and no memory creep. I plan to have a fancier caching version, perhaps with hash tables, and cache of volatile (temperature) and stable (switch states) data, but I suspect it will introduce other problems. Paul Alfille |