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.

Read with Wait function
#1
Hello
I'm looking for a function which sends read request to KNX bus and waits for the result. The reason is I have two inputs which I need to be sure their values are actual.
This works but it's ugly because I don't check if the readings of both values were successful:

grp.read('6/4/28')
grp.read('6/4/45')
os.sleep(5)

val_a=grp.getvalue('6/4/28')
val_b=grp.getvalue('6/4/45')


Is there such
err,val_a=grp.readAndWait('6/4/28')
?
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply


Messages In This Thread
Read with Wait function - by Thomas - 02.07.2019, 14:02
RE: Read with Wait function - by admin - 03.07.2019, 08:18
RE: Read with Wait function - by Thomas - 03.07.2019, 09:59
RE: Read with Wait function - by admin - 03.07.2019, 11:42
RE: Read with Wait function - by admin - 23.07.2019, 11:06

Forum Jump: