Closed zbikmarc closed 5 years ago
I created PR which should fix compilation problem and hopefully will not break callback functionality.
Looks like there is naming collision between callback_id_t
and callback functions.
I am afraid #64 indeed fixed compilation error but it looks like callbacks are not working properly :(
What do you mean with "not working properly"?
@envy Well, now I think it works but based on my experiments it looks like root cause of this problem is UDP multicast. In my case it is very unstable. Sometimes about 50% of packages are delivered, sometimes less than just few %. Of course It might be issue with my WiFi setup (unifi) but google tells nothing about this and I think I've tried everything I could to increase reliability :(
Yes, UDP multicast is not reliable and sadly KNX does not have a resend/ack mechanism specified.
I also have a unifi setup and no problems, but also not that much wifi traffic.
You can try the async-udp branch which has asynchronous handling of incoming requests.
Tried async-udp branch and maybe works a bit better - when I do read request every 60sec I have about 50% success. And this is only traffic in my small knx lab. If it works for you with same code and obviously same hardware, I am pretty sure that problem is related to my network settings/hardware not to code itself.
Static example does not compile in Arduino IDE (
1.8.7
) with esp8266 board library version2.3.0
. Same error for different boards selected.Issue looks similar to what was in #13