Hi, my previous post was sent incomplete by accident, sorry. I would like to know what is the recommended way to periodically search the 1-Wire bus for the presence of new devices? I mean iButtons, for example, are connected to the bus randomly (on occasion).
If I do: from pyowfs import Connection oneWireAdapter = "/dev/ttyS2" ROM = "DS2401" # iButton ROM while 1: root = Connection(oneWireAdapter) s = root.find(type=ROM)[0] print s time.sleep(0.1) I am getting following message after while: DEFAULT: ow_com.c:COM_open(43) [Too many open files] Cannot open port: /dev/ttyS2 Permissions problem? Is there a way, how to close Connection? I was searching the source code, but no luck. Petr
------------------------------------------------------------------------------ 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