This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

1-wire keyfob and reader
#7
Without os.sleep your script is consuming all available CPU resources.

The only way to check for new devices is to do polling, so there's no way to further optimize this script. You can try increasing sleep value to lower CPU load. I suppose users can hold the keyfob a little bit longer if they have proper feedback (door opening).
Reply


Messages In This Thread
1-wire keyfob and reader - by gjniewenhuijse - 12.05.2016, 11:31
RE: 1-wire keyfob and reader - by admin - 12.05.2016, 11:44
RE: 1-wire keyfob and reader - by admin - 13.05.2016, 06:39
RE: 1-wire keyfob and reader - by admin - 12.10.2016, 13:03
RE: 1-wire keyfob and reader - by Jose - 13.09.2018, 11:39
RE: 1-wire keyfob and reader - by Daniel - 13.09.2018, 12:04
RE: 1-wire keyfob and reader - by admin - 13.09.2018, 12:38
RE: 1-wire keyfob and reader - by Jose - 13.09.2018, 14:35

Forum Jump: