Closed vixncu closed 6 years ago
I would first make sure the group address you try reading from actually responds to read requests. This is not always the case (it's configured). You can also run the group monitor example, and see what messages come in (i.e., what addresses) when you switch the lights etc.
I've contacted the KNX system's admin and it seems I've had the wrong group address to read from :( Now it's all working fine. Thanks for help!
I've tried out today this example from calimero-introduction-repo, version 2.4:
This code works fine when I'm only writing to the KNX system:
pc.write(new GroupAddress(group), value)
, but when I try to read a value:pc.readBool(new GroupAddress(group))
from the same group address, I get a read timeout exception.I've also searched through other closed issues (#41, #21), but nothing from there seems to work. I'm building an running my code from Mac OS 10.13.3 through IntelIJ IDEA.
My KNX system is available through an IP-router on a local address. The datapoint I've tested on is my room's light system. The discover KNX/IP server example prints this result:
Any suggestions on what I should do? Thanks!
Please note: I'm new to the whole KNX environment, just started learning about it 2 days ago :D